def add_options(self, parser): """add options to the parser""" # add profile options MozProfileCLI.add_options(self, parser) # add runner options parser.add_option('-b', "--binary", dest="binary", help="Binary path.", metavar=None, default=None) parser.add_option('--app', dest='app', default='firefox', help="Application to use [DEFAULT: %default]") parser.add_option('--app-arg', dest='appArgs', default=[], action='append', help="provides an argument to the test application") parser.add_option('--debugger', dest='debugger', help="run under a debugger, e.g. gdb or valgrind") parser.add_option('--debugger-args', dest='debugger_args', action='store', help="arguments to the debugger") parser.add_option('--interactive', dest='interactive', action='store_true', help="run the program interactively") if self.metadata: parser.add_option("--info", dest="info", default=False, action="store_true", help="Print module information")
def add_options(self, parser): """add options to the parser""" parser.description = ("Reliable start/stop/configuration of Mozilla" " Applications (Firefox, Thunderbird, etc.)") # add profile options MozProfileCLI.add_options(self, parser) # add runner options parser.add_option('-b', "--binary", dest="binary", help="Binary path.", metavar=None, default=None) parser.add_option('--app', dest='app', default='firefox', help="Application to use [DEFAULT: %default]") parser.add_option('--app-arg', dest='appArgs', default=[], action='append', help="provides an argument to the test application") parser.add_option('--debugger', dest='debugger', help="run under a debugger, e.g. gdb or valgrind") parser.add_option('--debugger-args', dest='debugger_args', action='store', help="arguments to the debugger") parser.add_option('--interactive', dest='interactive', action='store_true', help="run the program interactively")