ATLAS Offline Software
Loading...
Searching...
No Matches
python.AthOptionsParser.AthHelpFlags Class Reference
Inheritance diagram for python.AthOptionsParser.AthHelpFlags:
Collaboration diagram for python.AthOptionsParser.AthHelpFlags:

Public Member Functions

 __call__ (self, parser, namespace, values, option_string=None)

Detailed Description

Custom help action to support flags

Definition at line 32 of file AthOptionsParser.py.

Member Function Documentation

◆ __call__()

python.AthOptionsParser.AthHelpFlags.__call__ ( self,
parser,
namespace,
values,
option_string = None )

Definition at line 34 of file AthOptionsParser.py.

34 def __call__(self, parser, namespace, values, option_string=None):
35
36 if not values:
37 parser.print_help()
38 else:
39 import runpy
40 sys.argv = ['athena.py', '--help']
41 if values != 'flags':
42 sys.argv.append(values)
43 runpy.run_module('AthenaConfiguration.AthNoop', run_name='__main__')
44
45 sys.exit(0)
46
47

The documentation for this class was generated from the following file: