Making the UI a bit more self-explanatory. "list param" 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 46b8f0b..76c404e 100644 --- a/man/xsetwacom.man +++ b/man/xsetwacom.man @@ -48,7 +48,7 @@ and List known devices. Only input devices managed by the __drivername__ driver are listed. .TP -\fBlist\fR param +\fBlist\fR parameters List known parameters. List all parameters suitable for the .B get or the diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index fc1fcce..5afd5ec 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -716,7 +716,7 @@ static void usage(void) printf( "\nCommands:\n" - " --list [devices|param] - display known devices, parameters \n" + " --list [devices|parameters] - display known devices, parameters \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"); @@ -923,7 +923,8 @@ static void list(Display *dpy, int argc, char **argv) else if (strcmp(argv[0], "dev") == 0 || strcmp(argv[0], "devices") == 0) list_devices(dpy); - else if (strcmp(argv[0], "param") == 0) + else if (strcmp(argv[0], "param") == 0 || + strcmp(argv[0], "parameters") == 0) list_param(dpy); else if (strcmp(argv[0], "mod") == 0 || strcmp(argv[0], "modifiers") == 0) -- 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
