From be0c5d0e110eab4eb3139cb75c3c73b55d19dadc Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Thu, 16 Apr 2026 14:24:56 -0700 Subject: [PATCH] config_command: Print available commands if missing So that we can figure out what commands to use without looking at the source code. Signed-off-by: Daniel Schaefer --- config-tool/config_command.py | 4 ++++ 1 file changed, 4 insertions(+) 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(