projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make --help and --version work consistently across all tools.
[u/mdw/putty]
/
windows
/
winplink.c
diff --git
a/windows/winplink.c
b/windows/winplink.c
index
7ec98e7
..
0abed7c
100644
(file)
--- a/
windows/winplink.c
+++ b/
windows/winplink.c
@@
-343,8
+343,10
@@
int main(int argc, char **argv)
} else if (!strcmp(p, "-s")) {
/* Save status to write to conf later. */
use_subsystem = 1;
} else if (!strcmp(p, "-s")) {
/* Save status to write to conf later. */
use_subsystem = 1;
- } else if (!strcmp(p, "-V")) {
+ } else if (!strcmp(p, "-V")
|| !strcmp(p, "--version")
) {
version();
version();
+ } else if (!strcmp(p, "--help")) {
+ usage();
} else if (!strcmp(p, "-pgpfp")) {
pgp_fingerprints();
exit(1);
} else if (!strcmp(p, "-pgpfp")) {
pgp_fingerprints();
exit(1);