Add assert for Command.pos_args
This commit is contained in:
parent
4d8c8a5d92
commit
ef5e5d84ac
@ -298,6 +298,8 @@ class Command:
|
|||||||
name = argparser.arg_name(param.name)
|
name = argparser.arg_name(param.name)
|
||||||
arg_info = self.get_arg_info(param)
|
arg_info = self.get_arg_info(param)
|
||||||
|
|
||||||
|
assert not arg_info.value, name
|
||||||
|
|
||||||
if arg_info.flag is not None:
|
if arg_info.flag is not None:
|
||||||
shortname = arg_info.flag
|
shortname = arg_info.flag
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user