parameters: (self, argv)
docstring: Parse the sub-command and dispatch to the appropriate handler.
  
          Shows usage if no sub-command is specified.
docstring_summary: Parse the sub-command and dispatch to the appropriate handler.
docstring_tokens: Parse the sub - command and dispatch to the appropriate handler .
function: def __init__(self, argv):
          """
          Parse the sub-command and dispatch to the appropriate handler.
  
          Shows usage if no sub-command is specified.
  
          """
          tool_path = str(self.__find_tool_path().resolve())
  
          try:
              result = subprocess.run(
                  [tool_path],
                  stdout=subprocess.PIPE,
                  universal_newlines=True
              )
  
              if result.returncode != 0:
                  sys.exit(result.returncode)
  
              if (
                      len(argv) == 0 or
                      (len(argv) == 1 and argv[0] == '-h') or
                      (len(argv) == 1 and argv[0] == '--help')
                 ):
                  print(self.__edit_tool_help(result.stdout))
              else:
                  # Call the tool
                  result = subprocess.run([tool_path] + argv)
                  if result.returncode != 0:
                      sys.exit(result.returncode)
  
          except KeyboardInterrupt as e:
              # it lets the subprocess to handle the exception
              pass
  
          except BaseException as e:
              self.__help_message += str(e)
              self.__help_message += '\n fast-discovery-server tool not found!'
              print(self.__help_message)
              sys.exit(1)
function_tokens: def __init__ ( self , argv ) : tool_path = str ( self . __find_tool_path ( ) . resolve ( ) ) try : result = subprocess . run ( [ tool_path ] , stdout = subprocess . PIPE , universal_newlines = True ) if result . returncode != 0 : sys . exit ( result . returncode ) if ( len ( argv ) == 0 or ( len ( argv ) == 1 and argv [ 0 ] == '-h' ) or ( len ( argv ) == 1 and argv [ 0 ] == '--help' ) ) : print ( self . __edit_tool_help ( result . stdout ) ) else : # Call the tool result = subprocess . run ( [ tool_path ] + argv ) if result . returncode != 0 : sys . exit ( result . returncode ) except KeyboardInterrupt as e : # it lets the subprocess to handle the exception pass except BaseException as e : self . __help_message += str ( e ) self . __help_message += '\n fast-discovery-server tool not found!' print ( self . __help_message ) sys . exit ( 1 )