diff options
author | merakor <cem@ckyln.com> | 2020-09-10 00:44:08 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-09-10 00:44:08 +0000 |
commit | 8938f2a8412948c67e41b9b1aa8751b39b696e67 (patch) | |
tree | eada5d8f64543923ebed1f9329ee099b0e032927 | |
parent | 1e4bdc9bbac795cb2e2cb52e042712f5b98c718e (diff) | |
download | cpt-8938f2a8412948c67e41b9b1aa8751b39b696e67.tar.gz |
cpt: fix flags that start with '--no-'4.0.1
FossilOrigin-Name: 5f194677e6c4b43c423593a74e9c3e07f11328da1c42e5e255b5b15cd6959e27
-rw-r--r-- | CHANGELOG.md | 7 | ||||
-rwxr-xr-x | src/cpt-build | 8 | ||||
-rw-r--r-- | src/cpt-lib | 2 | ||||
-rwxr-xr-x | src/cpt-update | 12 |
4 files changed, 18 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c726bb..934988f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ this project _somewhat_ adheres to [Semantic Versioning]. [Semantic Versioning]: https://semver.org/spec/v2.0.0.html +4.0.1 - 2020-09-10 +-------------------------------------------------------------------------------- + +### Fixed +- Fixed flags starting with `--no-` + + 4.0.0 - 2020-09-09 -------------------------------------------------------------------------------- diff --git a/src/cpt-build b/src/cpt-build index d9d5658..e872170 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 off: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-lib b/src/cpt-lib index 6f345a0..da3443d 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -8,7 +8,7 @@ # Currently maintained by Cem Keylan. version() { - log "Carbs Packaging Tools" 4.0.0 + log "Carbs Packaging Tools" 4.0.1 exit 0 } 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")" |