Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARG_OPTIONAL_BOOLEAN no need to generate the --no-xxx by default #151

Open
Gcaufy opened this issue Apr 26, 2021 · 1 comment
Open

ARG_OPTIONAL_BOOLEAN no need to generate the --no-xxx by default #151

Gcaufy opened this issue Apr 26, 2021 · 1 comment

Comments

@Gcaufy
Copy link

Gcaufy commented Apr 26, 2021

Ref: #14

For example, I have a --yes option.

# 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.

@matejak
Copy link
Owner

matejak commented Oct 3, 2022

I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants