Пример #1
0
    def __init__(self):
        self.arg_parser = ArgumentParser(description='Inspektor code check')
        self.arg_parser.add_argument('-v', '--verbose', action='store_true',
                                     help='print extra debug messages',
                                     dest='verbose')

        subparsers = self.arg_parser.add_subparsers(title='subcommands',
                                                    description='valid subcommands',
                                                    help='subcommand help')
        lint.set_arguments(subparsers)
        reindent.set_arguments(subparsers)
        style.set_arguments(subparsers)
        check.set_arguments(subparsers)
        license.set_arguments(subparsers)
        self.args = self.arg_parser.parse_args()
Пример #2
0
    def __init__(self):
        self.arg_parser = ArgumentParser(description='Inspektor code check')
        self.arg_parser.add_argument('-v',
                                     '--verbose',
                                     action='store_true',
                                     help='print extra debug messages',
                                     dest='verbose')

        subparsers = self.arg_parser.add_subparsers(
            title='subcommands',
            description='valid subcommands',
            help='subcommand help')
        lint.set_arguments(subparsers)
        reindent.set_arguments(subparsers)
        style.set_arguments(subparsers)
        check.set_arguments(subparsers)
        license.set_arguments(subparsers)
        self.args = self.arg_parser.parse_args()
Пример #3
0
 def __init__(self):
     self.arg_parser = ArgumentParser(description='Inspektor code check')
     self.arg_parser.add_argument('-v', '--verbose', action='store_true',
                                  help=('print extra debug messages '
                                        '(alters behavior of the lint '
                                        'subcommand)'),
                                  dest='verbose')
     self.arg_parser.add_argument('--exclude', type=str,
                                  help='Quoted string containing paths or '
                                       'patterns to be excluded from '
                                       'checking, comma separated')
     subparsers = self.arg_parser.add_subparsers(title='subcommands',
                                                 description='valid subcommands',
                                                 help='subcommand help')
     lint.set_arguments(subparsers)
     reindent.set_arguments(subparsers)
     style.set_arguments(subparsers)
     check.set_arguments(subparsers)
     license.set_arguments(subparsers)
     self.args = self.arg_parser.parse_args()
Пример #4
0
 def __init__(self):
     self.arg_parser = ArgumentParser(description='Inspektor code check')
     self.arg_parser.add_argument('-v',
                                  '--verbose',
                                  action='store_true',
                                  help=('print extra debug messages '
                                        '(alters behavior of the lint '
                                        'subcommand)'),
                                  dest='verbose')
     self.arg_parser.add_argument('--exclude',
                                  type=str,
                                  help='Quoted string containing paths or '
                                  'patterns to be excluded from '
                                  'checking, comma separated')
     subparsers = self.arg_parser.add_subparsers(
         title='subcommands',
         description='valid subcommands',
         help='subcommand help')
     lint.set_arguments(subparsers)
     reindent.set_arguments(subparsers)
     style.set_arguments(subparsers)
     check.set_arguments(subparsers)
     license.set_arguments(subparsers)
     self.args = self.arg_parser.parse_args()