X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/c0a8159289da8df577cc28be1f0c9f7f5c8d33c1..65c78e88edd541366726a65911825cf88083a4d9:/plink.c diff --git a/plink.c b/plink.c index 91484c66..0d79a984 100644 --- a/plink.c +++ b/plink.c @@ -29,6 +29,17 @@ void fatalbox(char *p, ...) WSACleanup(); cleanup_exit(1); } +void modalfatalbox(char *p, ...) +{ + va_list ap; + fprintf(stderr, "FATAL ERROR: "); + va_start(ap, p); + vfprintf(stderr, p, ap); + va_end(ap); + fputc('\n', stderr); + WSACleanup(); + cleanup_exit(1); +} void connection_fatal(char *p, ...) { va_list ap; @@ -185,14 +196,25 @@ static void usage(void) printf(" (\"host\" can also be a PuTTY saved session name)\n"); printf("Options:\n"); printf(" -v show verbose messages\n"); - printf(" -ssh force use of ssh protocol\n"); + printf(" -load sessname Load settings from saved session\n"); + printf(" -ssh -telnet -rlogin -raw\n"); + printf(" force use of a particular protocol (default SSH)\n"); printf(" -P port connect to specified port\n"); - printf(" -pw passw login with specified password\n"); + printf(" -l user connect with specified username\n"); printf(" -m file read remote command(s) from file\n"); + printf(" -batch disable all interactive prompts\n"); + printf("The following options only apply to SSH connections:\n"); + printf(" -pw passw login with specified password\n"); printf(" -L listen-port:host:port Forward local port to " "remote address\n"); printf(" -R listen-port:host:port Forward remote port to" " local address\n"); + printf(" -X -x enable / disable X11 forwarding\n"); + printf(" -A -a enable / disable agent forwarding\n"); + printf(" -t -T enable / disable pty allocation\n"); + printf(" -1 -2 force use of particular protocol version\n"); + printf(" -C enable compression\n"); + printf(" -i key private key file for authentication\n"); exit(1); } @@ -280,8 +302,6 @@ int main(int argc, char **argv) continue; } else if (!strcmp(p, "-batch")) { console_batch_mode = 1; - } else if (!strcmp(p, "-log")) { - logfile = "putty.log"; } } else if (*p) { if (!*cfg.host) {