[PATCH synaptics 4/6] syndaemon: list -? in help/man page
Peter Hutterer
peter.hutterer at who-t.net
Mon Mar 25 22:28:47 PDT 2013
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
man/syndaemon.man | 4 ++++
tools/syndaemon.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/man/syndaemon.man b/man/syndaemon.man
index a9d69b0..87691d8 100644
--- a/man/syndaemon.man
+++ b/man/syndaemon.man
@@ -61,6 +61,10 @@ Like \-k but also ignore Modifier+Key combos.
\fB\-R\fP
Use the XRecord extension for detecting keyboard activity instead of polling
the keyboard state.
+.LP
+.TP
+\fB\-?\fP
+Show the help message.
.SH "ENVIRONMENT VARIABLES"
.LP
.TP
diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index 50b7435..29e75f5 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -88,6 +88,7 @@ usage(void)
fprintf(stderr, " -K Like -k but also ignore Modifier+Key combos.\n");
fprintf(stderr, " -R Use the XRecord extension.\n");
fprintf(stderr, " -v Print diagnostic messages.\n");
+ fprintf(stderr, " -? Show this help message.\n");
exit(1);
}
@@ -576,6 +577,7 @@ main(int argc, char *argv[])
case 'v':
verbose = 1;
break;
+ case '?':
default:
usage();
break;
--
1.8.1.4
More information about the xorg-devel
mailing list