summaryrefslogtreecommitdiff
path: root/tools/shared.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-11-01 09:39:49 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-11-07 05:03:52 +0000
commit36af7d312b5b10790bd19e3066eb1cd4e4e5f6d4 (patch)
tree0408d63810d5e99dcd52eebe65e4f935606fe01d /tools/shared.c
parentbd52bf542119f0cc71f7b676f9ed67d5001c40fc (diff)
downloadlibinput-36af7d312b5b10790bd19e3066eb1cd4e4e5f6d4.tar.gz
tools: make the tools exit with exit code 2 on usage issues
This makes it easier to test for usage issues Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.c')
-rw-r--r--tools/shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.c b/tools/shared.c
index e3bc0287..812870f6 100644
--- a/tools/shared.c
+++ b/tools/shared.c
@@ -576,7 +576,7 @@ tools_exec_command(const char *prefix, int real_argc, char **real_argv)
"libinput: %s is not a libinput command or not installed. "
"See 'libinput --help'\n",
command);
-
+ return EXIT_INVALID_USAGE;
} else {
fprintf(stderr,
"Failed to execute '%s' (%s)\n",