Option_Strings Module
Containers for option strings
- author:
Doug Skrypa
- class cli_command_parser.parameters.option_strings.OptionStrings(option_strs: Collection[str], name_mode: OptionNameMode | str | None | _NotSetType = _NotSetType._NotSet)[source]
Bases:
objectContainer for the option strings registered for a given BaseOption (or subclass thereof).
- name_mode: OptionNameMode | None
- has_long() Bool[source]
Whether any (primary / non-alternate, for TriFlag) long option strings were defined
- has_min_opts() Bool[source]
Returns a truthy value if the minimum required number of option strings have been registered
- class cli_command_parser.parameters.option_strings.TriFlagOptionStrings(option_strs: Collection[str], name_mode: OptionNameMode | str | None | _NotSetType = _NotSetType._NotSet)[source]
Bases:
OptionStringsContainer for the option strings registered for a given TriFlag.