Mercurial > dropbear
comparison cli-runopts.c @ 509:4e251543b941
LICENSE - Update copyright to 2008
cli-runopts.c - mention that -v is for DEBUG_TRACE, add multihop syntax
dbclient.1 - document some new features
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 05 Nov 2008 13:53:14 +0000 |
parents | 805e557fdff7 |
children | a3748e54273c |
comparison
equal
deleted
inserted
replaced
508:d4bbc0039008 | 509:4e251543b941 |
---|---|
47 #endif | 47 #endif |
48 | 48 |
49 static void printhelp() { | 49 static void printhelp() { |
50 | 50 |
51 fprintf(stderr, "Dropbear client v%s\n" | 51 fprintf(stderr, "Dropbear client v%s\n" |
52 #ifdef ENABLE_CLI_MULTIHOP | |
53 "Usage: %s [options] [user@]host[/port][,[user@]host/port],...] [command]\n" | |
54 #else | |
52 "Usage: %s [options] [user@]host[/port] [command]\n" | 55 "Usage: %s [options] [user@]host[/port] [command]\n" |
56 #endif | |
53 "Options are:\n" | 57 "Options are:\n" |
54 "-p <remoteport>\n" | 58 "-p <remoteport>\n" |
55 "-l <username>\n" | 59 "-l <username>\n" |
56 "-t Allocate a pty\n" | 60 "-t Allocate a pty\n" |
57 "-T Don't allocate a pty\n" | 61 "-T Don't allocate a pty\n" |
70 "-R <listenport:remotehost:remoteport> Remote port forwarding\n" | 74 "-R <listenport:remotehost:remoteport> Remote port forwarding\n" |
71 #endif | 75 #endif |
72 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" | 76 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" |
73 "-K <keepalive> (0 is never, default %d)\n" | 77 "-K <keepalive> (0 is never, default %d)\n" |
74 #ifdef ENABLE_CLI_NETCAT | 78 #ifdef ENABLE_CLI_NETCAT |
75 "-B <endhost:endport> Netcat-alike bouncing\n" | 79 "-B <endhost:endport> Netcat-alike forwarding\n" |
76 #endif | 80 #endif |
77 #ifdef ENABLE_CLI_PROXYCMD | 81 #ifdef ENABLE_CLI_PROXYCMD |
78 "-J <proxy_program> Use program rather than tcp connection\n" | 82 "-J <proxy_program> Use program pipe rather than TCP connection\n" |
79 #endif | 83 #endif |
80 #ifdef DEBUG_TRACE | 84 #ifdef DEBUG_TRACE |
81 "-v verbose\n" | 85 "-v verbose (compiled with DEBUG_TRACE)\n" |
82 #endif | 86 #endif |
83 ,DROPBEAR_VERSION, cli_opts.progname, | 87 ,DROPBEAR_VERSION, cli_opts.progname, |
84 DEFAULT_RECV_WINDOW, DEFAULT_KEEPALIVE); | 88 DEFAULT_RECV_WINDOW, DEFAULT_KEEPALIVE); |
85 | 89 |
86 } | 90 } |