X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d719927eb175a73b13a7015498e9757010344bf5..38bf0b126aa96be32e1813a8885dcc63766a6be8:/windows/winplink.c diff --git a/windows/winplink.c b/windows/winplink.c index 7ec98e7f..dfbb80d8 100644 --- 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, "-V")) { + } else if (!strcmp(p, "-V") || !strcmp(p, "--version")) { version(); + } else if (!strcmp(p, "--help")) { + usage(); } else if (!strcmp(p, "-pgpfp")) { pgp_fingerprints(); exit(1); @@ -634,12 +636,12 @@ int main(int argc, char **argv) } if (run_timers(now, &next)) { - then = now; - now = GETTICKCOUNT(); - if (now - then > next - then) - ticks = 0; - else - ticks = next - now; + then = now; + now = GETTICKCOUNT(); + if (now - then > next - then) + ticks = 0; + else + ticks = next - now; } else { ticks = INFINITE; }