Belle II Software  light-2205-abys
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 875 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 895 of file cli_main.py.

895  def __call__(self, parser, namespace, values, option_string=None):
896  """Show full help message"""
897  # run in pager because amount of options will be looong
898  with Pager(f"{parser.prog} {option_string}"):
899  parser.print_help()
900  self.print_subparsers(parser)
901  parser.exit()
902 
903 

◆ print_subparsers()

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

Definition at line 878 of file cli_main.py.


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