From 1457ac8446664a8c3f707eb68a9adcac08fa65aa Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 26 Nov 2019 09:38:51 +1000 Subject: [PATCH] tools: libinput-record: bail out on invalid commandline arguments Signed-off-by: Peter Hutterer --- tools/libinput-record.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 0e2f288a..c934692b 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -2387,6 +2387,9 @@ main(int argc, char **argv) case OPT_LIBINPUT: with_libinput = true; break; + default: + usage(); + goto out; } }