Making the UI a bit more self-explanatory.

"list mod" still works to avoid breakage, it's just
undocumented.

Signed-off-by: Peter Hutterer <[email protected]>
---
 man/xsetwacom.man |    2 +-
 tools/xsetwacom.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/man/xsetwacom.man b/man/xsetwacom.man
index 5edf97a..46b8f0b 100644
--- a/man/xsetwacom.man
+++ b/man/xsetwacom.man
@@ -55,7 +55,7 @@ or the
 .B set
 command. Note that not all parameters are available on all device types.
 .TP
-\fBlist\fR mod
+\fBlist\fR modifiers
 List the available list of modifiers to be used when setting key or button
 actions.
 
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 79b3193..fc1fcce 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -717,7 +717,7 @@ static void usage(void)
        printf(
        "\nCommands:\n"
        " --list [devices|param]       - display known devices, parameters \n"
-       " --list mod                   - display supported modifier and 
specific keys for keystrokes\n"
+       " --list modifiers             - display supported modifier and 
specific keys for keystrokes\n"
        " --set \"device name\" param [values...] - set device parameter by 
name\n"
        " --get \"device name\" param [param...] - get current device 
parameter(s) value by name\n");
 }
@@ -925,7 +925,8 @@ static void list(Display *dpy, int argc, char **argv)
                list_devices(dpy);
        else if (strcmp(argv[0], "param") == 0)
                list_param(dpy);
-       else if (strcmp(argv[0], "mod") == 0)
+       else if (strcmp(argv[0], "mod") == 0 ||
+                strcmp(argv[0], "modifiers") == 0)
                list_mod(dpy);
        else
                printf("unknown argument to list.\n");
-- 
1.7.3.5


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to