From: Denis Auroux <[email protected]> Adding a "+" at the beginning of the getopt_long parameter string so that it won't try to look for options after non-options (in particular, a negative number in a set command is no longer considered to be an invalid command-line option).
Signed-off-by: Denis Auroux <[email protected]> Signed-off-by: Peter Hutterer <[email protected]> --- Denis, Ping forwarded this patch to me, I took the liberty of making it a git commit and adding your Signed-off-by. let me know if you're fine with that before pushing. Thanks. Cheers, Peter tools/xsetwacom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index d118ccb..de35444 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1980,7 +1980,7 @@ int main (int argc, char **argv) return 1; } - while ((c = getopt_long(argc, argv, "hvVd:sx", options, &optidx)) != -1) { + while ((c = getopt_long(argc, argv, "+hvVd:sx", options, &optidx)) != -1) { switch(c) { case 0: -- 1.6.6 ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
