def execute(self):
<EOL>parser = NewOptionParser(prog=self.prog_name,<EOL>usage=self.usage_info,<EOL>version=self.get_version(),<EOL>formatter = NewFormatter(),<EOL>add_help_option = False,<EOL>option_list=self.option_list)<EOL>options, args = parser.parse_args(self.argv)<EOL>self.options = options<EOL>if len(args) == <NUM_LIT:0>:<EOL><INDENT>self.message("<STR_LIT>", '<STR_LIT:error>')<EOL>return<EOL><DEDENT>subcommand = args[<NUM_LIT:0>]<EOL>self.handle(args[<NUM_LIT:1>:], self.options, self.global_options, subcommand)<EOL>
Given the command-line arguments, this figures out which subcommand is
being run, creates a parser appropriate to that command, and runs it.