def fetch_command(self, global_options, subcommand):
commands = self.get_commands()<EOL>try:<EOL><INDENT>klass = commands[subcommand]<EOL><DEDENT>except KeyError:<EOL><INDENT>sys.stderr.write("<STR_LIT>" %(subcommand, self.prog_name))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>return klass<EOL>
Tries to fetch the given subcommand, printing a message with the
appropriate command called from the command line (usually
"uliweb") if it can't be found.