Breaking it
This commit is contained in:
parent
879bb6f79e
commit
0eef6241a7
10
shlax/cli.py
10
shlax/cli.py
@ -31,11 +31,13 @@ class TargetArgument(cli2.Argument):
|
|||||||
|
|
||||||
class Command(cli2.Command):
|
class Command(cli2.Command):
|
||||||
def setargs(self):
|
def setargs(self):
|
||||||
|
cli2.arg('target', cls=TargetArgument)(self.target)
|
||||||
super().setargs()
|
super().setargs()
|
||||||
self['target'] = TargetArgument(
|
# that works though, so I went for that
|
||||||
self,
|
# self['target'] = TargetArgument(
|
||||||
self.sig.parameters['target'],
|
# self,
|
||||||
)
|
# self.sig.parameters['target'],
|
||||||
|
# )
|
||||||
if 'actions' in self:
|
if 'actions' in self:
|
||||||
del self['actions']
|
del self['actions']
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user