'Given the command-line arguments, this figures out which subcommand is
being run, creates a parser appropriate to that command, and runs it.'

def execute(self):

    parser = LaxOptionParser(usage='%prog    subcommand    [options]    [args]', version=get_version(), option_list=BaseCommand.option_list)
    self.autocomplete()
    try:
        (options, args) = parser.parse_args(self.argv)
        handle_default_options(options)
    except:
        pass
    try:
        subcommand = self.argv[1]
    except IndexError:
        subcommand = 'help'
    if (subcommand == 'help'):
        if (len(args) > 2):
            self.fetch_command(args[2]).print_help(self.prog_name, args[2])
        else:
            parser.print_lax_help()
            sys.stderr.write((self.main_help_text() + '\n'))
            sys.exit(1)
    elif (self.argv[1:] == ['--version']):
        pass
    elif (self.argv[1:] == ['--help']):
        parser.print_lax_help()
        sys.stderr.write((self.main_help_text() + '\n'))
    else:
        self.fetch_command(subcommand).run_from_argv(self.argv)
