use action strings

This commit is contained in:
Jörn-Michael Miehe 2020-08-19 17:25:39 +02:00
parent e6f87277c6
commit a085586baa

View file

@ -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,