Breaking it

This commit is contained in:
jpic 2020-05-31 13:37:09 +02:00
parent 879bb6f79e
commit 0eef6241a7

View File

@ -31,11 +31,13 @@ class TargetArgument(cli2.Argument):
class Command(cli2.Command):
def setargs(self):
cli2.arg('target', cls=TargetArgument)(self.target)
super().setargs()
self['target'] = TargetArgument(
self,
self.sig.parameters['target'],
)
# that works though, so I went for that
# self['target'] = TargetArgument(
# self,
# self.sig.parameters['target'],
# )
if 'actions' in self:
del self['actions']