def __init__(self, func, auto_convert=False, cmd_delim=None, sub_group=None, collector=None, **kwargs): if auto_convert: func = convert(_automatic=True)(func) Wrapping.__init__(self, func) self._cmd_delim = cmd_delim self._group = sub_group self._collector = collector self._parser = cmdline.create_parser(func, sub_group=self._group, collector=self._collector, **kwargs)
def __init__(self, func, sub_group=None, collector=None, **kwargs): Wrapping.__init__(self, func) self._group = sub_group self._collector = collector self._parser = cmdline.create_parser(func, sub_group=self._group, collector=self._collector, **kwargs)