pyTooling.CLIAbstraction.ValuedFlagList
List of valued flags are argument lists where each item is a valued flag (See
ValuedFlag
).
Each list item gets translated into a ***ValuedFlag
, with the same flag name, but differing values.
See also
For single valued flags.
→ValuedFlag
For list of strings.
→StringListArgument
For list of paths.
→PathListArgument
Classes
ValuedFlagList
: Class and base-class for all ValuedFlagList classes, which represents a list of valued flags.ShortValuedFlagList
: Represents aValuedFlagArgument
with a single dash.LongValuedFlagList
: Represents aValuedFlagArgument
with a double dash.WindowsValuedFlagList
: Represents aValuedFlagArgument
with a single slash.
Classes
- class pyTooling.CLIAbstraction.ValuedFlagList.ValuedFlagList[source]
Class and base-class for all ValuedFlagList classes, which represents a list of valued flags.
Each list element gets translated to a valued flag using the pattern for formatting. See
ValuedFlag
for more details on valued flags.Example:
file=file1.log file=file2.log
Inheritance
- AsArgument()[source]
Convert this argument instance to a string representation with proper escaping using the matching pattern based on the internal name and value.
- Return type:
- Returns:
Formatted argument.
- Raises:
ValueError – If internal name is None.
- __str__()[source]
Return a string representation of this argument instance.
- Return type:
- Returns:
Space separated sequence of arguments formatted and each enclosed in double quotes.
- class pyTooling.CLIAbstraction.ValuedFlagList.ShortValuedFlagList[source]
Represents a
ValuedFlagArgument
with a single dash.Example:
-file=file1.log -file=file2.log
Inheritance
- AsArgument()
Convert this argument instance to a string representation with proper escaping using the matching pattern based on the internal name and value.
- Return type:
- Returns:
Formatted argument.
- Raises:
ValueError – If internal name is None.
- __repr__()
Return a string representation of this argument instance.
- Return type:
- Returns:
Comma separated sequence of arguments formatted and each enclosed in double quotes.
- class pyTooling.CLIAbstraction.ValuedFlagList.LongValuedFlagList[source]
Represents a
ValuedFlagArgument
with a double dash.Example:
--file=file1.log --file=file2.log
Inheritance
- AsArgument()
Convert this argument instance to a string representation with proper escaping using the matching pattern based on the internal name and value.
- Return type:
- Returns:
Formatted argument.
- Raises:
ValueError – If internal name is None.
- __repr__()
Return a string representation of this argument instance.
- Return type:
- Returns:
Comma separated sequence of arguments formatted and each enclosed in double quotes.
- class pyTooling.CLIAbstraction.ValuedFlagList.WindowsValuedFlagList[source]
Represents a
ValuedFlagArgument
with a single slash.Example:
/file:file1.log /file:file2.log
Inheritance
- AsArgument()
Convert this argument instance to a string representation with proper escaping using the matching pattern based on the internal name and value.
- Return type:
- Returns:
Formatted argument.
- Raises:
ValueError – If internal name is None.
- __repr__()
Return a string representation of this argument instance.
- Return type:
- Returns:
Comma separated sequence of arguments formatted and each enclosed in double quotes.