Option_Strings Module
Containers for option strings
- author:
Doug Skrypa
- class cli_command_parser.parameters.option_strings.OptionStrings(option_strs: ~typing.Collection[str], name_mode: ~cli_command_parser.config.OptionNameMode | str | None = <object object>)[source]
Bases:
object
Container 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: ~typing.Collection[str], name_mode: ~cli_command_parser.config.OptionNameMode | str | None = <object object>)[source]
Bases:
OptionStrings
Container for the option strings registered for a given TriFlag.