In particular, we add entries for the two command line options for `make
check` to work, add some whitespace for readability, and enclose the keys
in brackets so `make check` doesn't think the - key is one of the command
line options.  We also capitalize Esc and the letter keys and use arrow
symbols for readbility.
---
 util/wmiv.c | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/util/wmiv.c b/util/wmiv.c
index 90bc88d..e99e3e3 100755
--- a/util/wmiv.c
+++ b/util/wmiv.c
@@ -717,21 +717,24 @@ int main(int argc, char **argv)
        if (option != -1) {
                switch (option) {
                case 'h':
-                       fprintf(stderr, "Usage: %s [image(s)|directory]\n"
+                       printf("Usage: %s [image(s)|directory]\n"
+                       "Options:\n"
+                       "  -h, --help     print this help text\n"
+                       "  -v, --version  print version\n"
                        "Keys:\n"
-                       "+: zoom in\n"
-                       "-: zoom out\n"
-                       "esc: actual size\n"
+                       "  [+]            zoom in\n"
+                       "  [-]            zoom out\n"
+                       "  [Esc]          actual size\n"
 #ifdef HAVE_PTHREAD
-                       "d: launch diaporama mode\n"
+                       "  [D]            launch diaporama mode\n"
 #endif
-                       "l: rotate image on the left\n"
-                       "q: quit\n"
-                       "r: rotate image on the right\n"
-                       "right: next image\n"
-                       "left: previous image\n"
-                       "up: first image\n"
-                       "down: last image\n",
+                       "  [L]            rotate image on the left\n"
+                       "  [Q]            quit\n"
+                       "  [R]            rotate image on the right\n"
+                       "  [???]            next image\n"
+                       "  [???]            previous image\n"
+                       "  [???]            first image\n"
+                       "  [???]            last image\n",
                        argv[0]);
                        return EXIT_SUCCESS;
                case 'v':
-- 
2.1.4


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to