Report missing argument type as a warning instead of error

This commit is contained in:
Alexandre Aubin 2019-02-07 19:51:46 +01:00
parent af96b17a48
commit daee832af4

View file

@ -277,7 +277,7 @@ def check_manifest(path):
for argument in manifest["arguments"]["install"]:
if not "type" in argument.keys():
print_error("[YEP-2.1] You should specify the type of the argument '%s'. You can use : %s." % (argument["name"], ', '.join(recognized_types)))
print_warning("[YEP-2.1] You should specify the type of the argument '%s'. You can use : %s." % (argument["name"], ', '.join(recognized_types)))
elif argument["type"] not in recognized_types:
print_warning("[YEP-2.1] The type '%s' for argument '%s' is not recognized... it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types)))