|
| | __call__ (self, parser, namespace, values, option_string=None) |
Custom help to hide/show expert groups
Definition at line 957 of file athenaEF.py.
◆ __call__()
| athenaEF.MyHelp.__call__ |
( |
| self, |
|
|
| parser, |
|
|
| namespace, |
|
|
| values, |
|
|
| option_string = None ) |
Definition at line 959 of file athenaEF.py.
959 def __call__(self, parser, namespace, values, option_string=None):
960
961 for g in parser.expert_groups:
962 for a in g._group_actions:
963 if values!='all':
964 a.help = argparse.SUPPRESS
965
966 parser.print_help()
967 if values!='all':
968 print(
'\nUse --help=all to show all (expert) options')
969 sys.exit(0)
970
971
void print(char *figname, TCanvas *c1)
The documentation for this class was generated from the following file: