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 2427 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 2434 of file trfArgClasses.py.
|
private |
Definition at line 2539 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.add_argument | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 2442 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.allArgs | ( | self | ) |
Getter for argument list.
Definition at line 2535 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 2511 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 2528 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.getHelpString | ( | self, | |
argument | |||
) |
Return the help string for a given argument.
Definition at line 2519 of file trfArgClasses.py.
def python.trfArgClasses.trfArgParser.getProdsysDesc | ( | self | ) |
Definition at line 2498 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 2585 of file trfArgClasses.py.
|
private |
Definition at line 2439 of file trfArgClasses.py.
|
private |
Definition at line 2436 of file trfArgClasses.py.
|
private |
Definition at line 2437 of file trfArgClasses.py.
|
private |
Definition at line 2438 of file trfArgClasses.py.
|
private |
Definition at line 2435 of file trfArgClasses.py.