|
| | __call__ (self, parser, namespace, values, option_string=None) |
Custom help to hide/show expert groups
Definition at line 996 of file athenaEF.py.
◆ __call__()
| athenaEF.MyHelp.__call__ |
( |
| self, |
|
|
| parser, |
|
|
| namespace, |
|
|
| values, |
|
|
| option_string = None ) |
Definition at line 998 of file athenaEF.py.
998 def __call__(self, parser, namespace, values, option_string=None):
999
1000 for g in parser.expert_groups:
1001 for a in g._group_actions:
1002 if values!='all':
1003 a.help = argparse.SUPPRESS
1004
1005 parser.print_help()
1006 if values!='all':
1007 print(
'\nUse --help=all to show all (expert) options')
1008 sys.exit(0)
1009
1010
void print(char *figname, TCanvas *c1)
The documentation for this class was generated from the following file: