From 59550ed21cce9df18077bbadd81e87f93fa53dda Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 26 Feb 2018 13:50:17 +1000 Subject: [PATCH] tools: fix option parsing in libinput measure Missing '+' in the optstring caused it to evaluate all options. If any argument was passed to a subcommand, libinput-measure would throw an error and exit. https://bugs.freedesktop.org/show_bug.cgi?id=105246 Signed-off-by: Peter Hutterer --- tools/libinput-measure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libinput-measure.c b/tools/libinput-measure.c index 9b489ed2..fb9729c7 100644 --- a/tools/libinput-measure.c +++ b/tools/libinput-measure.c @@ -53,7 +53,7 @@ main(int argc, char **argv) { 0, 0, 0, 0} }; - c = getopt_long(argc, argv, "h", opts, &option_index); + c = getopt_long(argc, argv, "+h", opts, &option_index); if (c == -1) break;