From: Jeremy Huddleston Date: Wed, 30 Nov 2011 07:52:53 +0000 (-0800) Subject: Print usage when run with --help X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/ab352ec2789130cfcb7b61ae5bf36d6af4daa4a3?ds=sidebyside;hp=b8f54d5c5874827fa24970029a23be06fe02bca1 Print usage when run with --help Signed-off-by: Jeremy Huddleston Reviewed-by: Bryce Harrington Signed-off-by: Peter Hutterer --- diff --git a/src/xinput.c b/src/xinput.c index 27fb23e..2d9a893 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -357,6 +357,11 @@ main(int argc, char * argv[]) return print_version(argv[0]); } + if (strcmp("help", func) == 0) { + usage(); + return 0; + } + display = XOpenDisplay(NULL); if (display == NULL) {