# ARG_OPTIONAL_BOOLEAN([yes],[y],[Delete action without confirm again])
It generated like this:
The general script's help msg
Usage: /tmp/test.sh [-y|--(no-)yes] [-h|--help]
-y, --yes, --no-yes: Delete local branches without confirm (off by default)
-h, --help: Prints help
--no-yes make no sense. and it's totally unnecessary to generate the --no-xxxx option, because the value is off by default.
Ref: https://github.com/matejak/argbash/issues/14
For example, I have a
--yes
option.It generated like this:
--no-yes
make no sense. and it's totally unnecessary to generate the--no-xxxx
option, because the value isoff
by default.