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):
|
||||
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']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user