ATLAS Offline Software
Public Member Functions | List of all members
python.AthOptionsParser.AthHelpFlags Class Reference
Inheritance diagram for python.AthOptionsParser.AthHelpFlags:
Collaboration diagram for python.AthOptionsParser.AthHelpFlags:

Public Member Functions

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

Detailed Description

Custom help action to support flags

Definition at line 49 of file AthOptionsParser.py.

Member Function Documentation

◆ __call__()

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

Definition at line 51 of file AthOptionsParser.py.

51  def __call__(self, parser, namespace, values, option_string=None):
52 
53  if not values:
54  parser.print_help()
55  else:
56  import runpy
57  sys.argv = ['athena.py', '--help']
58  if values != 'flags':
59  sys.argv.append(values)
60  runpy.run_module('AthenaConfiguration.AthNoop', run_name='__main__')
61 
62  sys.exit(0)
63 
64 

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