Belle II Software  release-08-01-10
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 recursively show help for an ArgumentParser and all it's sub_parsers

Definition at line 953 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 973 of file cli_main.py.

973  def __call__(self, parser, namespace, values, option_string=None):
974  """Show full help message"""
975  # run in pager because amount of options will be looong
976  with Pager(f"{parser.prog} {option_string}"):
977  parser.print_help()
978  self.print_subparsers(parser)
979  parser.exit()
980 
981 

◆ print_subparsers()

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

Definition at line 956 of file cli_main.py.


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