aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-08 12:31:30 +0000
committermerakor <cem@ckyln.com>2020-09-08 12:31:30 +0000
commita5751ed0a949c0e6735dbfcedc7eb1cd07e76cd1 (patch)
tree31e24709ed71d4c5c968330506d0fb03a3589d93 /src
parent8e22aac34a960d634a4513c3078d15fcb701db84 (diff)
downloadcpt-a5751ed0a949c0e6735dbfcedc7eb1cd07e76cd1.tar.gz
cpt: fix getoptions initial value calls
FossilOrigin-Name: 846a2586dbd7620ba4bb72aade0a64ffe6128b3f6536a89e17f8d45201ea1c45
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt-build8
-rwxr-xr-xsrc/cpt-remove4
-rwxr-xr-xsrc/cpt-update12
3 files changed, 12 insertions, 12 deletions
diff --git a/src/cpt-build b/src/cpt-build
index d922084..d9d5658 100755
--- 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
index 53f0a1f..0d63ece 100755
--- 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
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")"