Home | History | Annotate | Download | only in tool

Lines Matching refs:option_parser

59         # option_parser can be overriden by the tool using set_option_parser
61 self.option_parser = HelpPrintingOptionParser(usage=SUPPRESS_USAGE, add_help_option=False, option_list=self.options)
67 # the tool to be able to create and modify the option_parser
69 def set_option_parser(self, option_parser):
70 self.option_parser = option_parser
76 self.option_parser.add_option(option)
110 return self.option_parser.parse_args(args)
128 help_text += self.option_parser.format_option_help(IndentedHelpFormatter())
202 self.option_parser.remove_option(option.get_opt_string())
213 self.option_parser.print_help()
284 def _add_global_options(self, option_parser):
287 option_parser.add_option(option)
295 option_parser = self._create_option_parser()
296 self._add_global_options(option_parser)
300 option_parser.error("%s is not a recognized command" % command_name)
302 command.set_option_parser(option_parser)