diff options
author | Damien Miller <djm@mindrot.org> | 2002-02-08 22:06:29 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-02-08 22:06:29 +1100 |
commit | 025e01c7f0afe5cb25a57c829137a55a9d1f4352 (patch) | |
tree | ee30114f4725c5199c4c92f8cd79eb562e9c5fa5 /sftp.c | |
parent | 81b6e787a0e7f2cdef45f17f9237f02eb372bf57 (diff) |
- mpech@cvs.openbsd.org 2002/02/06 14:27:23
[sftp.c]
sync usage() with manual.
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | 26 | ||
27 | RCSID("$OpenBSD: sftp.c,v 1.24 2002/02/05 00:00:46 djm Exp $"); | 27 | RCSID("$OpenBSD: sftp.c,v 1.25 2002/02/06 14:27:23 mpech Exp $"); |
28 | 28 | ||
29 | /* XXX: short-form remote directory listings (like 'ls -C') */ | 29 | /* XXX: short-form remote directory listings (like 'ls -C') */ |
30 | 30 | ||
@@ -92,10 +92,12 @@ connect_to_server(char *path, char **args, int *in, int *out, pid_t *sshpid) | |||
92 | static void | 92 | static void |
93 | usage(void) | 93 | usage(void) |
94 | { | 94 | { |
95 | extern char *__progname; | ||
96 | |||
95 | fprintf(stderr, | 97 | fprintf(stderr, |
96 | "usage: sftp [-1Cv] [-b batchfile] [-F config] [-o option] [-s subsystem|path]\n" | 98 | "usage: %s [-vC1] [-b batchfile] [-o option] [-s subsystem|path] [-B buffer_size]\n" |
97 | " [-P direct server path] [-S program] \n" | 99 | " [-F config] [-P direct server path] [-S program]\n" |
98 | " [-B buffer_size] [user@]host[:file [file]]\n"); | 100 | " [user@]host[:file [file]]\n", __progname); |
99 | exit(1); | 101 | exit(1); |
100 | } | 102 | } |
101 | 103 | ||