Closed
Description
🚀 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 the yes
or true
will still pass True
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