diff --git a/config-tool/config_command.py b/config-tool/config_command.py index cea848da..88ba0b6e 100755 --- a/config-tool/config_command.py +++ b/config-tool/config_command.py @@ -14,6 +14,10 @@ device = get_device() +if not sys.argv or sys.argv[1].lower() not in commands: + print("Provide one command: ", ', '.join(commands)) + sys.exit(1) + config_command = commands[sys.argv[1].lower()] data = struct.pack(