summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-10-22 08:20:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-11-05 08:51:29 +1000
commit8b1446f798478a9d8483cdaae8d7ff1bae5c045b (patch)
tree71a8275089913b062e30127756e3e9f5527c5749
parent6622911370197d69737be02dd9f83e4406a991ca (diff)
synclient: if no option is specified, assume -l
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--man/synclient.man2
-rw-r--r--tools/synclient.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/man/synclient.man b/man/synclient.man
index 610b101..8169771 100644
--- a/man/synclient.man
+++ b/man/synclient.man
@@ -96,7 +96,7 @@ positions, called gdx and gdy.
.RE
.TP
\fB\-l\fR
-List current user settings.
+List current user settings. This is the default if no option is given.
.TP
\fB\-V\fR
Print version number and exit.
diff --git a/tools/synclient.c b/tools/synclient.c
index 032b129..316ae2c 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -581,6 +581,9 @@ main(int argc, char *argv[])
Display *dpy;
XDevice *dev;
+ if (argc == 1)
+ dump_settings = 1;
+
/* Parse command line parameters */
while ((c = getopt(argc, argv, "sm:hlV")) != -1) {
switch (c) {