In the documentation Using flag inversions, enumerations, and counts
The following is mentioned:
Since these flags are non-optional and don't have default values, they're now required when calling the command. The specified prefixes are prepended to the long names for the flags:
% example --index --enable-required-element
true true
% example --no-index --disable-required-element
false false
Doubt:
- When I tried without specifying the boolean flags they seem to work as shown below:
% example
false false
Not sure this was a typo, I have made the correction in my fork, could raise a PR if relevant.