Пример #1
0
    def parse(self):
        self.parser = Cli.base_parser(usage="%prog suite.yml ...")

        # self.parser.add_option('--test', dest='test', action='test', help='test something')

        self.options, self.args = self.parser.parse_args(self.args[1:])

        if len(self.args) == 0:
            raise DysonOptionsError('You must specify a suite to run!')
Пример #2
0
 def parse(self):
     self.parser = Cli.base_parser(usage='%prog <alias>')
     self.options, self.args = self.parser.parse_args(self.args[1:])
     return True