-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
enhancementNew feature or requestNew feature or request
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
Alternatives
fabien-brulport, tshu-w, jhony-asanuma-oxb, cody-mar10, expnn and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request