david.m...@gmail.com
unread,Jan 23, 2026, 5:00:08 PM (10 days ago) Jan 23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Window Maker Development
Sort out the argument order or else 'make check' will complain.
---
doc/wmiv.1 | 12 ++++++------
util/wmiv.c | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/wmiv.1 b/doc/wmiv.1
index 0c66e90e..c708647d 100644
--- a/doc/wmiv.1
+++ b/doc/wmiv.1
@@ -6,14 +6,14 @@ wmiv \- quick image viewer using wrlib
.RI [ \,image(s)\/ | \,directory\/ | \,archive\/]
.SH OPTIONS
.TP
-.B \-h, \-\-help
-print help text
+.B \-\-help
+display this help
.TP
-.B \-v, \-\-version
-print version
-.TP
-.B \-i, \-\-ignore-unknown
+.B \-\-ignore-unknown
ignore unknown image format
+.TP
+.B \-\-version
+print version
.SH KEYS
.TP
[+]
diff --git a/util/wmiv.c b/util/wmiv.c
index 47290501..cf5dac1f 100755
--- a/util/wmiv.c
+++ b/util/wmiv.c
@@ -1736,9 +1736,9 @@ int main(int argc, char **argv)
red.green = red.blue = 0;
static struct option long_options[] = {
- {"version", no_argument, 0, 'v'},
{"help", no_argument, 0, 'h'},
{"ignore-unknown", no_argument, 0, 'i'},
+ {"version", no_argument, 0, 'v'},
{0, 0, 0, 0}
};
int option_index = 0;
@@ -1749,9 +1749,9 @@ int main(int argc, char **argv)
case 'h':
printf("Usage: %s [image(s)|directory|archive]\n"
"Options:\n"
- " -h, --help print this help text\n"
- " -v, --version print version\n"
+ " -h, --help display this help and exit\n"
" -i, --ignore-unknown ignore unknown image format\n"
+ " -v, --version print version\n"
"\nKeys:\n\n"
" [+] zoom in\n"
" [-] zoom out\n"
--
2.43.0
0001-Doc-fix-wmiv-man-page.patch