diff options
author | merakor <cem@ckyln.com> | 2020-08-23 13:25:06 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-08-23 13:25:06 +0000 |
commit | 1df4ecaf961d124ab31ca74407eabd874a521403 (patch) | |
tree | b28e99785c23165811e6811831bacf6f0df699d0 /src/cpt-build | |
parent | 9031dc631fa33a1493f5780943f8f888ce530178 (diff) | |
download | cpt-1df4ecaf961d124ab31ca74407eabd874a521403.tar.gz |
getoptions: do not unset variables if parameters aren't given.
FossilOrigin-Name: d3aeabb1ff9e6acaea85638e37721065bb937b2cb1a349270a5dbcb0ef669d59
Diffstat (limited to 'src/cpt-build')
-rwxr-xr-x | src/cpt-build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpt-build b/src/cpt-build index d014f28..5f73de8 100755 --- a/src/cpt-build +++ b/src/cpt-build @@ -7,9 +7,9 @@ if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi parser_definition() { setup REST -- "usage: ${0##*/} [pkg...]" msg -- '' 'Options:' - flag CPT_PROMPT -y --no-prompt on:0 -- "Do not prompt for confirmation" - 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" + disp :usage -h --help -- "Show this help message" + disp :version -v --version -- "Print version information" } eval "$(getoptions parser_definition parse "$0")" |