diplomat.utils.cli_tools.Flag¶
- diplomat.utils.cli_tools.Flag = Flag[source]¶
Custom type caster type that represents a boolean flag argument on the command line (true/false doesn’t need to be specified). It’s python type is automatically converted to a boolean. The default value of a flag argument should be False so the python function signature matches the corresponding generated CLI signature.