parameters: (self, argv)
docstring: Executes the do_*() function for the specified subcommand (argv[0]).
docstring_summary: Executes the do_*() function for the specified subcommand (argv[0]).
docstring_tokens: Executes the do_ * () function for the specified subcommand ( argv [ 0 ] ) .
function: def execute_subcommand(self, argv):
          """
          Executes the do_*() function for the specified subcommand (argv[0]).
          """
          if not argv:
              return
          cmdName = self.command_alias.get(argv[0], argv[0])
          try:
              func = getattr(self, 'do_' + cmdName)
          except AttributeError:
              return self.default(argv)
          try:
              return func(argv)
          except TypeError, e:
              sys.stderr.write("%s %s: %s\n" % (self.name, cmdName, e))
              import traceback
              traceback.print_exc(file=sys.stderr)
              sys.stderr.write("Try '%s help %s'\n" % (self.name, cmdName))
function_tokens: def execute_subcommand ( self , argv ) : if not argv : return cmdName = self . command_alias . get ( argv [ 0 ] , argv [ 0 ] ) try : func = getattr ( self , 'do_' + cmdName ) except AttributeError : return self . default ( argv ) try : return func ( argv ) except TypeError , e : sys . stderr . write ( "%s %s: %s\n" % ( self . name , cmdName , e ) ) import traceback traceback . print_exc ( file = sys . stderr ) sys . stderr . write ( "Try '%s help %s'\n" % ( self . name , cmdName ) )