Making the UI a bit more self-explanatory.

"list dev" 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 c0e2e2d..5edf97a 100644
--- a/man/xsetwacom.man
+++ b/man/xsetwacom.man
@@ -44,7 +44,7 @@ and
 
 .SS "LIST COMMANDS"
 .TP
-\fBlist\fR dev
+\fBlist\fR devices
 List known devices. Only input devices managed by the __drivername__
 driver are listed.
 .TP
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 1835860..79b3193 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -716,7 +716,7 @@ static void usage(void)
 
        printf(
        "\nCommands:\n"
-       " --list [dev|param]           - display known devices, parameters \n"
+       " --list [devices|param]       - display known devices, parameters \n"
        " --list mod                   - 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");
@@ -920,7 +920,8 @@ static void list(Display *dpy, int argc, char **argv)
        TRACE("'list' requested.\n");
        if (argc == 0)
                list_devices(dpy);
-       else if (strcmp(argv[0], "dev") == 0)
+       else if (strcmp(argv[0], "dev") == 0 ||
+                strcmp(argv[0], "devices") == 0)
                list_devices(dpy);
        else if (strcmp(argv[0], "param") == 0)
                list_param(dpy);
-- 
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