[fix] Empty list of arguments in actionsmap

This commit is contained in:
ljf 2018-10-05 15:58:30 +02:00
parent 53f55bf100
commit ae2bbc82f5

View file

@ -315,7 +315,7 @@ class ActionsMapParser(BaseActionsMapParser):
deprecated_alias=deprecated_alias) deprecated_alias=deprecated_alias)
def add_global_arguments(self, arguments): def add_global_arguments(self, arguments):
for argument_name, argument_options in list(arguments.items()): for argument_name, argument_options in arguments.items():
# will adapt arguments name for cli or api context # will adapt arguments name for cli or api context
names = self.format_arg_names(str(argument_name), names = self.format_arg_names(str(argument_name),
argument_options.pop('full', None)) argument_options.pop('full', None))