tfep.utils.cli.tool.FlagOption
- class tfep.utils.cli.tool.FlagOption(option_name, prepend_to_false=None)[source]
Bases:
CLIOptionA generic command line flag option.
This descriptor accepts only
True/FalseorNoneand it specifies CLI flag parameters (i.e., that do not take a value). IfNone, it is not passed to the command. IfFalse, its behavior depends on theprepend_no_to_falseparameter (see below).- Parameters:
option_name (str) – The name of the option in the command line interface (e.g.,
'-o').prepend_to_false (str, optional) – If given and the descriptor is
False, this string (typically'no') is inserted into the flag passed to the command right after the dash character(s).
Methods
__init__(option_name[, prepend_to_false])to_subprocess(owner_instance)Implements
CLIOption.to_subprocess().