ATLAS Offline Software
Public Member Functions | List of all members
athenaHLT.MyHelp Class Reference
Inheritance diagram for athenaHLT.MyHelp:
Collaboration diagram for athenaHLT.MyHelp:

Public Member Functions

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

Detailed Description

Custom help to hide/show expert groups

Definition at line 301 of file athenaHLT.py.

Member Function Documentation

◆ __call__()

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

Definition at line 303 of file athenaHLT.py.

303  def __call__(self, parser, namespace, values, option_string=None):
304 
305  for g in parser.expert_groups:
306  for a in g._group_actions:
307  if values!='all':
308  a.help = argparse.SUPPRESS
309 
310  parser.print_help()
311  if values!='all':
312  print('\nUse --help=all to show all (expert) options')
313  sys.exit(0)
314 
315 

The documentation for this class was generated from the following file:
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70