aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md7
-rwxr-xr-xsrc/cpt-build8
-rw-r--r--src/cpt-lib2
-rwxr-xr-xsrc/cpt-update12
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")"