You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This cli supports two explicit flags: --recurse and --no-recurse for both struct fields, plus one implicit flag, which is also --no-recurse (on the recurse field).
These ambiguities should probably end up as compile errors.
The text was updated successfully, but these errors were encountered:
This was requested privately. The idea is to invert the value of argument flags (fields with
bool
value) when it defaults totrue
.E.g. This would be valid and would parse
--no-recurse
toargs.recurse == false
:Meanwhile, if
#[default(true)]
is not used on the flag, then--no-recurse
would be an argument parser error; only--recurse
would be allowed.Without this feature, there is no way to turn off default flags.
Potential caveats
This feature could lead to some weird ambiguities. For instance:
This cli supports two explicit flags:
--recurse
and--no-recurse
for both struct fields, plus one implicit flag, which is also--no-recurse
(on therecurse
field).These ambiguities should probably end up as compile errors.
The text was updated successfully, but these errors were encountered: