CLI: can bool parameters become --flag
instead of --flag true
?
#355
Labels
enhancement
New feature or request
--flag
instead of --flag true
?
#355
🚀 Feature request
Currently, while using CLI(), a bool param must be specified on the command line as
--flag true
or--flag yes
. Is it possible to set it up such that--flag
without theyes
ortrue
will still passTrue
into the function?Motivation
I see this commonly tripping up members on my team.
--flag
is a common pattern,store_true
in argparse, supported in python-fire (https://github.com/google/python-fire/blob/master/docs/guide.md#boolean-arguments)Pitch
--flag
should work the same as--flag yes
or--flag true
Alternatives
The text was updated successfully, but these errors were encountered: