From d2969f520384b515b53d64c0a8455f89872b9d49 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 1 Apr 2025 16:17:03 +1000 Subject: [PATCH] tools/record: correct the --help output for autorestart Part-of: --- tools/libinput-record.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 27bc3313..de4c8481 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -2567,14 +2567,14 @@ init_hidraw(struct record_context *ctx) static void usage(void) { - printf("Usage: %s [--help] [--all] [--autorestart] [--output-file filename] [/dev/input/event0] [...]\n" + printf("Usage: %s [--help] [--all] [--autorestart=2] [--output-file filename] [/dev/input/event0] [...]\n" "Common use-cases:\n" "\n" " sudo %s -o recording.yml\n" " Then select the device to record and it Ctrl+C to stop.\n" " The recorded data is in recording.yml and can be attached to a bug report.\n" "\n" - " sudo %s -o recording.yml --autorestart 2\n" + " sudo %s -o recording.yml --autorestart=2\n" " As above, but restarts after 2s of inactivity on the device.\n" " Note, the output file is only the prefix.\n" "\n"