tfep.utils.cli.tool.CLIOption
- class tfep.utils.cli.tool.CLIOption(option_name)[source]
Bases:
ABCGeneric descriptor for command line option.
This must be inherited by all options for :class:
.CLIToolto automatically discover the option. To implement this, it is sufficient to provide an implementation of theto_subprocess()method, which takes the object instance as input and outputs a list with the strings to append to the command insubprocessformat.- Parameters:
option_name (str) – The name of the option in the command line interface (e.g.,
'-o').
Methods
__init__(option_name)to_subprocess(owner_instance)Return the strings to append to the command in
subprocessformat.