![]() |
ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, *args, **kwargs) |
Subclassing argparse. More... | |
def | add_argument (self, *args, **kwargs) |
def | getProdsysDesc (self) |
def | defineArgGroup (self, *args) |
Define an argparse argument group for the main parser to use. More... | |
def | getHelpString (self, argument) |
Return the help string for a given argument. More... | |
def | dumpArgs (self) |
Return a list of all arguments understood by this transform in prodsys style. More... | |
def | allArgs (self) |
Getter for argument list. More... | |
def | parse_args (self, args=None, namespace=None) |
Call argument_parser parse_args, then concatenate values. More... | |
Private Member Functions | |
def | _parse_list_helper (self, value) |
Private Attributes | |
_helpString | |
_argClass | |
_argGroups | |
_argKeyGroups | |
_argAlias | |
Definition at line 2449 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Subclassing argparse.
Changed the defualt methods for add_arguments and parse_args. This is so that the help functions and the namespace object can be more useful.
self._helpString
. Is a dictionary with the where the key-value pairs are the argument name and the help text. self._argClass
. Is a dictionary so the 'type' of argument, i.e. the class that it uses can be extracted. Definition at line 2456 of file trfArgClasses.py.
|
private |
Definition at line 2561 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.add_argument | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 2464 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.allArgs | ( | self | ) |
Getter for argument list.
Definition at line 2557 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.defineArgGroup | ( | self, | |
* | args | ||
) |
Define an argparse argument group for the main parser to use.
Definition at line 2533 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.dumpArgs | ( | self | ) |
Return a list of all arguments understood by this transform in prodsys style.
Arguments which are irrelevant for production are removed and the '–' is added back on
Definition at line 2550 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.getHelpString | ( | self, | |
argument | |||
) |
Return the help string for a given argument.
Definition at line 2541 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.getProdsysDesc | ( | self | ) |
Definition at line 2520 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.parse_args | ( | self, | |
args = None , |
|||
namespace = None |
|||
) |
Call argument_parser parse_args, then concatenate values.
Sets-up the standard argparse namespace, then use a special treatment for lists (arising from nargs='+'), where values are appropriately concatenated and a single object is returned
Definition at line 2607 of file trfArgClasses.py.
|
private |
Definition at line 2461 of file trfArgClasses.py.
|
private |
Definition at line 2458 of file trfArgClasses.py.
|
private |
Definition at line 2459 of file trfArgClasses.py.
|
private |
Definition at line 2460 of file trfArgClasses.py.
|
private |
Definition at line 2457 of file trfArgClasses.py.