command: Don't handle varargs if they are None
This commit is contained in:
parent
b9216bca15
commit
fe08052641
@ -169,7 +169,8 @@ class Command:
|
||||
if param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD:
|
||||
posargs.append(value)
|
||||
elif param.kind == inspect.Parameter.VAR_POSITIONAL:
|
||||
posargs += value
|
||||
if value is not None:
|
||||
posargs += value
|
||||
elif param.kind == inspect.Parameter.KEYWORD_ONLY:
|
||||
kwargs[param.name] = value
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user