mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 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:
committed by
Carlos R. Mafra
parent
08b27e5edd
commit
1b1cb99e36
27
util/wmiv.c
27
util/wmiv.c
@@ -717,21 +717,24 @@ int main(int argc, char **argv)
|
|||||||
if (option != -1) {
|
if (option != -1) {
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case 'h':
|
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"
|
"Keys:\n"
|
||||||
"+: zoom in\n"
|
" [+] zoom in\n"
|
||||||
"-: zoom out\n"
|
" [-] zoom out\n"
|
||||||
"esc: actual size\n"
|
" [Esc] actual size\n"
|
||||||
#ifdef HAVE_PTHREAD
|
#ifdef HAVE_PTHREAD
|
||||||
"d: launch diaporama mode\n"
|
" [D] launch diaporama mode\n"
|
||||||
#endif
|
#endif
|
||||||
"l: rotate image on the left\n"
|
" [L] rotate image on the left\n"
|
||||||
"q: quit\n"
|
" [Q] quit\n"
|
||||||
"r: rotate image on the right\n"
|
" [R] rotate image on the right\n"
|
||||||
"right: next image\n"
|
" [▸] next image\n"
|
||||||
"left: previous image\n"
|
" [◂] previous image\n"
|
||||||
"up: first image\n"
|
" [▴] first image\n"
|
||||||
"down: last image\n",
|
" [▾] last image\n",
|
||||||
argv[0]);
|
argv[0]);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
case 'v':
|
case 'v':
|
||||||
|
|||||||
Reference in New Issue
Block a user