diff options
author | simon <simon@FreeBSD.org> | 2003-10-01 21:01:14 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2003-10-01 21:01:14 +0000 |
commit | 7b927af0e16f4cf14c2e86afc01fbadacf1b9c89 (patch) | |
tree | 56b5a3c3a092933230471f6aa64b9e950eadd669 /usr.bin/tftp | |
parent | 57a2e3592f572897442a9c10e336c3c3df363a48 (diff) | |
download | FreeBSD-src-7b927af0e16f4cf14c2e86afc01fbadacf1b9c89.zip FreeBSD-src-7b927af0e16f4cf14c2e86afc01fbadacf1b9c89.tar.gz |
tftp.1:
- Add the optional port argument to SYNOPSIS.
main.c:
- Sync usage with the manual page.
Approved by: trhodes (main.c part)
Obtained from: OpenBSD (jmc)
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r-- | usr.bin/tftp/main.c | 10 | ||||
-rw-r--r-- | usr.bin/tftp/tftp.1 | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 76aadd2..d4fc7c8 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -258,7 +258,7 @@ setpeer(argc, argv) argv = margv; } if ((argc < 2) || (argc > 3)) { - printf("usage: %s host-name [port]\n", argv[0]); + printf("usage: %s [host [port]]\n", argv[0]); return; } if (argc == 3) @@ -424,8 +424,8 @@ static void putusage(s) char *s; { - printf("usage: %s file ... host:target, or\n", s); - printf(" %s file ... target (when already connected)\n", s); + printf("usage: %s file [[host:]remotename]\n", s); + printf(" %s file1 file2 ... fileN [[host:]remote-directory]\n", s); } /* @@ -507,8 +507,8 @@ static void getusage(s) char *s; { - printf("usage: %s host:file host:file ... file, or\n", s); - printf(" %s file file ... file if connected\n", s); + printf("usage: %s [host:]file [localname]\n", s); + printf(" %s [host1:]file1 [host2:]file2 ... [hostN:]fileN\n", s); } int rexmtval = TIMEOUT; diff --git a/usr.bin/tftp/tftp.1 b/usr.bin/tftp/tftp.1 index fab4062..8b677ef 100644 --- a/usr.bin/tftp/tftp.1 +++ b/usr.bin/tftp/tftp.1 @@ -40,7 +40,7 @@ .Nd trivial file transfer program .Sh SYNOPSIS .Nm -.Op Ar host +.Op Ar host Op Ar port .Sh DESCRIPTION The .Nm |