tools: record: use the right exit code when the output file is missing
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 16 Mar 2020 06:13:27 +0000 (16:13 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 16 Mar 2020 06:21:04 +0000 (16:21 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c

index 453c3eb..6c55fb5 100644 (file)
@@ -2582,6 +2582,7 @@ main(int argc, char **argv)
        if (ctx.timeout > 0 && output_arg == NULL) {
                fprintf(stderr,
                        "Option --autorestart requires --output-file\n");
+               rc = EXIT_INVALID_USAGE;
                goto out;
        }