1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Make --help and --version work consistently across all tools.

Well, at least across all command-line tools on both Windows and Unix,
and the GTK apps on Unix too. The Windows GUI apps fundamentally can't
write to standard output and it doesn't seem sensible to use message
boxes for these purposes :-)

[originally from svn r9673]
This commit is contained in:
Simon Tatham
2012-09-19 17:08:15 +00:00
parent 65290ced76
commit 5db48dcddb
6 changed files with 28 additions and 10 deletions

View File

@ -118,10 +118,7 @@ void sk_cleanup(void)
void showversion(void)
{
char *verstr = dupstr(ver);
verstr[0] = tolower((unsigned char)verstr[0]);
printf("PuTTYgen %s\n", verstr);
sfree(verstr);
printf("puttygen: %s\n", ver);
}
void usage(int standalone)