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

Automatically create --no-foo for boolean flag --foo #29

Open
cgay opened this issue Oct 12, 2022 · 1 comment
Open

Automatically create --no-foo for boolean flag --foo #29

cgay opened this issue Oct 12, 2022 · 1 comment

Comments

@cgay
Copy link
Member

cgay commented Oct 12, 2022

As discussed here it would be nice to automatically get --no-foo as the negative option for boolean flag --foo.

When negative-names: is provided the automatic --no-foo should not be created. negative-names: #f (or an empty sequence) should disable all negative names.

Honestly not sure whether to support --nofoo, --no-foo, or both. I guess --nofoo is traditional, so potentially less confusing.

See also: #11

@waywardmonkeys
Copy link
Member

I'm some things, I'm used to at least 3 different negative options:

  • --enable-foo -> --disable-foo
  • --with-foo -> --without-foo
  • --foo -> --no-foo

But this is also interesting in how it cements an understanding of English into a system...

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