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>
This commit is contained in:
Peter Hutterer
2009-10-22 08:20:55 +10:00
parent 6622911370
commit 8b1446f798
2 changed files with 4 additions and 1 deletions

View File

@@ -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.

View File

@@ -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) {