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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-02-26 13:50:17 +10:00
parent 963a7600f1
commit 59550ed21c

View file

@ -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;