1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 14:15:46 +01:00

wmiv: Improve help text.

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 for readability.
This commit is contained in:
Doug Torrance
2015-06-07 23:59:25 -05:00
committed by Carlos R. Mafra
parent 08b27e5edd
commit 1b1cb99e36

View File

@@ -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':