![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, jo_name=None, prog=None, print_caller_help=True, **kwargs) | |
| add_argument (self, *args, **kwargs) | |
| parse_args (self, args=None, namespace=None) | |
| parse_known_args (self, args=None, namespace=None) | |
| format_help (self) | |
Public Attributes | |
| str | caller_help |
| prefix_chars | |
Parse user commandline arguments in a job option.
Definition at line 31 of file AthArgumentParser.py.
| python.AthArgumentParser.AthArgumentParser.__init__ | ( | self, | |
| jo_name = None, | |||
| prog = None, | |||
| print_caller_help = True, | |||
| ** | kwargs ) |
Create the parser
---------
Arguments
---------
jo_name:
The name of the calling job option, used to format the help
text. Will attempt to deduce it if possible
prog:
The start of the usage message, usually can be deduced
print_caller_help:
Whether or not to print the help text from the calling program
(usually athena)
All other keyword arguments are forwarded to the base class
constructor
Definition at line 34 of file AthArgumentParser.py.
| python.AthArgumentParser.AthArgumentParser.add_argument | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Add a new argument The difference between this and the base class is that it disallows adding positional arguments which are reserved by athena for job options. In particular, even if user code uses only one job option (which is common) pathena will add more when running on the grid
Definition at line 96 of file AthArgumentParser.py.
| python.AthArgumentParser.AthArgumentParser.format_help | ( | self | ) |
Definition at line 126 of file AthArgumentParser.py.
Override the base class to use the leftover athena argumnets by default
Definition at line 110 of file AthArgumentParser.py.
Override the base class to use the leftover athena argumnets by default
Definition at line 118 of file AthArgumentParser.py.
| str python.AthArgumentParser.AthArgumentParser.caller_help |
Definition at line 84 of file AthArgumentParser.py.
| python.AthArgumentParser.AthArgumentParser.prefix_chars |
Definition at line 104 of file AthArgumentParser.py.