mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 04:43:00 +00:00
use action strings
This commit is contained in:
parent
e6f87277c6
commit
a085586baa
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ class SubCommand:
|
||||||
|
|
||||||
def __init__(self, name, action, add_parser=True, **kwargs):
|
def __init__(self, name, action, add_parser=True, **kwargs):
|
||||||
self.__name = name
|
self.__name = name
|
||||||
|
self._action = action
|
||||||
|
|
||||||
if add_parser:
|
if add_parser:
|
||||||
self._sub_parser = Parser().get_subparsers().add_parser(
|
self._sub_parser = Parser().get_subparsers().add_parser(
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue