From a5751ed0a949c0e6735dbfcedc7eb1cd07e76cd1 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 8 Sep 2020 12:31:30 +0000 Subject: cpt: fix getoptions initial value calls FossilOrigin-Name: 846a2586dbd7620ba4bb72aade0a64ffe6128b3f6536a89e17f8d45201ea1c45 --- 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 39399c9..9e288ee 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 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" } eval "$(getoptions parser_definition parse "$0")" -- cgit v1.2.3