Add assert for Command.pos_args

This commit is contained in:
Florian Bruhin 2018-12-03 08:44:10 +01:00
parent 4d8c8a5d92
commit ef5e5d84ac

View File

@ -298,6 +298,8 @@ class Command:
name = argparser.arg_name(param.name)
arg_info = self.get_arg_info(param)
assert not arg_info.value, name
if arg_info.flag is not None:
shortname = arg_info.flag
else: