Describe the bug
When you set a negative option (--no-xxx) the option xxx is always set to 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.
Actual behavior
options.xxx is always false.
Environment informations
- OS: Windows
- OS version: 10
- Shell: cmd
- Caporal version: 2.0.2
Describe the bug
When you set a negative option (
--no-xxx) the optionxxxis always set tofalse.To Reproduce
Run with and without
--no-xxx.Expected behavior
options.xxxmust betruewithout--no-xxxandfalsewith--no-xxx.Actual behavior
options.xxxis alwaysfalse.Environment informations