mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-12-25 18:42:59 +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):
|
||||
self.__name = name
|
||||
self._action = action
|
||||
|
||||
if add_parser:
|
||||
self._sub_parser = Parser().get_subparsers().add_parser(
|
||||
name,
|
||||
|
|
Loading…
Reference in a new issue