cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit e5716ca5d25cc83cbd535a139dd706fbad48faa6
parent b667b1230229c0734efe00fc5aabf3e3b9e207f0
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  8 Sep 2020 15:31:30 +0300

cpt: fix getoptions initial value calls

Diffstat:
Msrc/cpt-build | 8++++----
Msrc/cpt-remove | 4++--
Msrc/cpt-update | 12++++++------
3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/cpt-build b/src/cpt-build @@ -6,10 +6,10 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi parser_definition() { setup REST -- "usage: ${0##*/} [pkg...]" msg -- '' 'Options:' - flag CPT_PROMPT -y --no-prompt on:0 init:"$CPT_PROMPT" -- "Do not prompt for confirmation" - flag CPT_TEST -t --test init:"$CPT_TEST" -- "Run tests (if it exists)" - disp :usage -h --help -- "Show this help message" - disp :version -v --version -- "Print version information" + flag CPT_PROMPT -y --no-prompt on:0 init:="$CPT_PROMPT" -- "Do not prompt for confirmation" + flag CPT_TEST -t --test init:="$CPT_TEST" -- "Run tests (if it exists)" + disp :usage -h --help -- "Show this help message" + disp :version -v --version -- "Print version information" } eval "$(getoptions parser_definition parse "$0")" diff --git a/src/cpt-remove b/src/cpt-remove @@ -6,8 +6,8 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi parser_definition() { setup REST -- "usage: ${0##*/} [pkg...]" msg -- '' 'Options:' - flag CPT_FORCE -f --force init:"$CPT_FORCE" -- "Force removal" - param CPT_ROOT --root init:"$CPT_ROOT" -- "Use an alternate root directory" + flag CPT_FORCE -f --force init:="$CPT_FORCE" -- "Force removal" + 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" } diff --git 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")"