예제 #1
0
파일: parser.py 프로젝트: sherlant/opensvc
 def __init__(self, args=None, colorize=True, width=None, formatter=None,
              indent=6):
     OptParser.__init__(self, args=args, prog=PROG, options=OPT,
                        actions=ACTIONS,
                        global_options=GLOBAL_OPTS,
                        colorize=colorize, width=width,
                        formatter=formatter, indent=indent)
예제 #2
0
 def __init__(self,
              args=None,
              colorize=True,
              width=None,
              formatter=None,
              indent=6):
     OptParser.__init__(self,
                        args=args,
                        prog=PROG,
                        options=OPT,
                        actions=ACTIONS,
                        deprecated_options=DEPRECATED_OPTIONS,
                        deprecated_actions=DEPRECATED_ACTIONS,
                        actions_translations=ACTIONS_TRANSLATIONS,
                        global_options=mp.GLOBAL_OPTS,
                        svc_select_options=mp.SVC_SELECT_OPTS,
                        colorize=colorize,
                        width=width,
                        formatter=formatter,
                        indent=indent,
                        async_actions=ACTION_ASYNC)