summaryrefslogtreecommitdiff
path: root/tools/shared.h
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.h
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.h')
-rw-r--r--tools/shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/shared.h b/tools/shared.h
index 7888d265..4e363e22 100644
--- a/tools/shared.h
+++ b/tools/shared.h
@@ -30,6 +30,8 @@
#include <quirks.h>
#include <libinput.h>
+#define EXIT_INVALID_USAGE 2
+
enum configuration_options {
OPT_TAP_ENABLE = 256,
OPT_TAP_DISABLE,