parameters: (self, argv)
return_statement: return self.main(["--help"])
docstring: Main method takes argument from top level mesos and parses them
          to call the appropriate method.
docstring_summary: Main method takes argument from top level mesos and parses them
          to call the appropriate method.
docstring_tokens: Main method takes argument from top level mesos and parses them to call the appropriate method .
function: def main(self, argv):
          """
          Main method takes argument from top level mesos and parses them
          to call the appropriate method.
          """
          command_strings = cli.util.format_commands_help(self.COMMANDS)
  
          usage = self.USAGE.format(
              plugin=self.PLUGIN_NAME,
              short_help=self.SHORT_HELP,
              commands=command_strings)
  
          arguments = docopt(
              usage,
              argv=argv,
              version=self.VERSION,
              program="mesos " + self.PLUGIN_NAME,
              options_first=True)
  
          cmd = arguments["<command>"]
          argv = arguments["<args>"]
  
          if cmd in self.COMMANDS.keys():
              if "external" not in self.COMMANDS[cmd]:
                  argument_format, short_help, long_help, flag_format = \
                      cli.util.format_subcommands_help(self.COMMANDS[cmd])
  
                  usage = SUBCOMMAND_USAGE.format(
                      plugin=self.PLUGIN_NAME,
                      command=cmd,
                      arguments=argument_format,
                      flags=flag_format,
                      short_help=short_help,
                      long_help=long_help)
  
                  arguments = docopt(
                      usage,
                      argv=argv,
                      program="mesos " + self.PLUGIN_NAME + " " + cmd,
                      version=self.VERSION,
                      options_first=True)
  
              if "alias" in self.COMMANDS[cmd]:
                  cmd = self.COMMANDS[cmd]["alias"]
  
              self.__setup__(cmd, argv)
              return getattr(self, cmd.replace("-", "_"))(arguments)
  
          return self.main(["--help"])
function_tokens: def main ( self , argv ) : command_strings = cli . util . format_commands_help ( self . COMMANDS ) usage = self . USAGE . format ( plugin = self . PLUGIN_NAME , short_help = self . SHORT_HELP , commands = command_strings ) arguments = docopt ( usage , argv = argv , version = self . VERSION , program = "mesos " + self . PLUGIN_NAME , options_first = True ) cmd = arguments [ "<command>" ] argv = arguments [ "<args>" ] if cmd in self . COMMANDS . keys ( ) : if "external" not in self . COMMANDS [ cmd ] : argument_format , short_help , long_help , flag_format = cli . util . format_subcommands_help ( self . COMMANDS [ cmd ] ) usage = SUBCOMMAND_USAGE . format ( plugin = self . PLUGIN_NAME , command = cmd , arguments = argument_format , flags = flag_format , short_help = short_help , long_help = long_help ) arguments = docopt ( usage , argv = argv , program = "mesos " + self . PLUGIN_NAME + " " + cmd , version = self . VERSION , options_first = True ) if "alias" in self . COMMANDS [ cmd ] : cmd = self . COMMANDS [ cmd ] [ "alias" ] self . __setup__ ( cmd , argv ) return getattr ( self , cmd . replace ( "-" , "_" ) ) ( arguments ) return self . main ( [ "--help" ] )