def parse_opts(opts):
    """Simulate options being parsed by `LaunchpadScript`."""
    if isinstance(opts, basestring):
        opts = [opts]

    parser = OptionChecker()
    parser.add_options(RemoveTranslations.my_options)
    options, arguments = parser.parse_args(args=opts)
    process_options(options)
    return options
def parse_opts(opts):
    """Simulate options being parsed by `LaunchpadScript`."""
    if isinstance(opts, basestring):
        opts = [opts]

    parser = OptionChecker()
    parser.add_options(RemoveTranslations.my_options)
    options, arguments = parser.parse_args(args=opts)
    process_options(options)
    return options
 def _check_options(self, opts):
     """Get `_check_constraints_safety`'s answer for given options."""
     script = make_script(opts)
     process_options(script.options)
     return script._check_constraints_safety()
 def _check_options(self, opts):
     """Get `_check_constraints_safety`'s answer for given options."""
     script = make_script(opts)
     process_options(script.options)
     return script._check_constraints_safety()