summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-02-08 22:06:29 +1100
committerDamien Miller <djm@mindrot.org>2002-02-08 22:06:29 +1100
commit025e01c7f0afe5cb25a57c829137a55a9d1f4352 (patch)
treeee30114f4725c5199c4c92f8cd79eb562e9c5fa5 /sftp.c
parent81b6e787a0e7f2cdef45f17f9237f02eb372bf57 (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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sftp.c b/sftp.c
index c2282b502..160851d7f 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.24 2002/02/05 00:00:46 djm Exp $"); 27RCSID("$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)
92static void 92static void
93usage(void) 93usage(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