Belle II Software  release-05-02-19
FullHelpAction Class Reference
Inheritance diagram for FullHelpAction:
Collaboration diagram for FullHelpAction:

Public Member Functions

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

Detailed Description

Class to recusively show help for an ArgumentParser and all it's sub_parsers

Definition at line 905 of file cli_main.py.

Member Function Documentation

◆ __call__()

def __call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)
Show full help message

Definition at line 925 of file cli_main.py.

925  def __call__(self, parser, namespace, values, option_string=None):
926  """Show full help message"""
927  # run in pager because amount of options will be looong
928  with Pager("{} {}".format(parser.prog, option_string)):
929  parser.print_help()
930  self.print_subparsers(parser)
931  parser.exit()
932 
933 

◆ print_subparsers()

def print_subparsers (   self,
  parser,
  prefix = "" 
)
Print help message for given parser and call again for all sub parsers

Definition at line 908 of file cli_main.py.


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