From 8938f2a8412948c67e41b9b1aa8751b39b696e67 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 10 Sep 2020 00:44:08 +0000 Subject: cpt: fix flags that start with '--no-' FossilOrigin-Name: 5f194677e6c4b43c423593a74e9c3e07f11328da1c42e5e255b5b15cd6959e27 --- src/cpt-update | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cpt-update') diff --git a/src/cpt-update b/src/cpt-update index 9e288ee..8bc29f2 100755 --- a/src/cpt-update +++ b/src/cpt-update @@ -6,12 +6,12 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi parser_definition() { setup REST -- "usage: ${0##*/} [options]" msg -- '' 'Options:' - flag download_only -d --download -- "Only download updatable packages" - flag CPT_FETCH -n --no-fetch on:0 init:="$CPT_FETCH" -- "Do not refresh the repositories" - flag CPT_PROMPT -y --no-prompt on:0 init:="$CPT_PROMPT" -- "Do not prompt for confirmation" - param CPT_ROOT --root init:="$CPT_ROOT" -- "Use an alternate root directory" - disp :usage -h --help -- "Show this help message" - disp :version -v --version -- "Print version information" + flag download_only -d --download -- "Only download updatable packages" + flag CPT_FETCH -n --no-fetch on:0 off:0 init:="$CPT_FETCH" -- "Do not refresh the repositories" + flag CPT_PROMPT -y --no-prompt on:0 off:0 init:="$CPT_PROMPT" -- "Do not prompt for confirmation" + param CPT_ROOT --root init:="$CPT_ROOT" -- "Use an alternate root directory" + disp :usage -h --help -- "Show this help message" + disp :version -v --version -- "Print version information" } eval "$(getoptions parser_definition parse "$0")" -- cgit v1.2.3