diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-10-22 08:20:55 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-05 08:51:29 +1000 |
commit | 8b1446f798478a9d8483cdaae8d7ff1bae5c045b (patch) | |
tree | 71a8275089913b062e30127756e3e9f5527c5749 | |
parent | 6622911370197d69737be02dd9f83e4406a991ca (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.man | 2 | ||||
-rw-r--r-- | tools/synclient.c | 3 |
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) { |