We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When you set a negative option (--no-xxx) the option xxx is always set to false.
--no-xxx
xxx
false
To Reproduce
program .command('test') .option('--no-xxx') .action(({ options }) => console.log(options.xxx))
Run with and without --no-xxx.
Expected behavior options.xxx must be true without --no-xxx and false with --no-xxx.
options.xxx
true
Actual behavior options.xxx is always false.
Environment informations
The text was updated successfully, but these errors were encountered:
mattallty
No branches or pull requests
Describe the bug
When you set a negative option (
--no-xxx
) the optionxxx
is always set tofalse
.To Reproduce
Run with and without
--no-xxx
.Expected behavior
options.xxx
must betrue
without--no-xxx
andfalse
with--no-xxx
.Actual behavior
options.xxx
is alwaysfalse
.Environment informations
The text was updated successfully, but these errors were encountered: