def run_from_argv(self, prog, subcommand, global_options, argv):
self.prog_name = prog<EOL>parser = self.create_parser(prog, subcommand)<EOL>options, args = parser.parse_args(argv)<EOL>self.global_options = global_options<EOL>self.options = options<EOL>self.args = args<EOL>self.execute(args, options, global_options)<EOL>
Set up any environment changes requested, then run this command.