isNegateable property
Can the flag be prefixed with 'no'?
This will only make sense on boolean properties that have a default to true.
@Parameter(isNegateable: true)
bool verbose = true;
On the command line, one can:
| Command Line | Result |
|---|---|
| empty | verbose will be true |
--verbose |
verbose will be true |
--no-verbose |
verbose will be false |
Implementation
final bool? isNegateable;