summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
authorkmos <kmos@cvs.openbsd.org>2019-05-15 11:53:23 +0000
committerkmos <kmos@cvs.openbsd.org>2019-05-15 11:53:23 +0000
commit9f899dd8020275e9a3d7339dadbe6b0a2d90ee4c (patch)
tree669a218707f769bf412c63fdd34b0bcd7a1fd0fe /usr.bin/ftp/main.c
parent9f7fc77bb682e2d2f9009e9b2df9b000e6d9803f (diff)
Add the -m flag to the ftp.1 man page.
Adjust the usage message of ftp(1) to reflect its two operating modes and list missing flags. OK florian@ jmc@
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index a9f87f10151..bae68f47a53 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.126 2019/05/14 18:25:31 florian Exp $ */
+/* $OpenBSD: main.c,v 1.127 2019/05/15 11:53:22 kmos Exp $ */
/*
* Copyright (c) 2015 Sunil Nimmagadda <sunil@openbsd.org>
@@ -412,9 +412,10 @@ proxy_parse(const char *name)
static __dead void
usage(void)
{
- fprintf(stderr, "usage: %s [-46ACVM] [-D title] [-o output] "
- "[-S tls_options] [-U useragent] "
- "[-w seconds] url ...\n", getprogname());
+ fprintf(stderr, "usage:\t%s [-46AVv] [-D title] [host [port]]\n"
+ "\t%s [-46ACMmVv] [-D title] [-o output] [-S tls_options]\n"
+ "\t\t[-U useragent] [-w seconds] url ...\n", getprogname(),
+ getprogname());
exit(1);
}