summaryrefslogtreecommitdiffstats
path: root/usr.bin/join
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2004-08-25 13:15:07 +0000
committermaxim <maxim@FreeBSD.org>2004-08-25 13:15:07 +0000
commit5810faeee1a1b607d5ab1ac30677d868302177e6 (patch)
tree4de0bdd05bbde1ccc43c75b65283eff729419fe8 /usr.bin/join
parenta2512dc38ee5cc546ce25a504efafdf0ff801a08 (diff)
downloadFreeBSD-src-5810faeee1a1b607d5ab1ac30677d868302177e6.zip
FreeBSD-src-5810faeee1a1b607d5ab1ac30677d868302177e6.tar.gz
Add -j flag to usage() and the man page synopsis.
Inspired by: DragonFlyBSD
Diffstat (limited to 'usr.bin/join')
-rw-r--r--usr.bin/join/join.11
-rw-r--r--usr.bin/join/join.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/join/join.1 b/usr.bin/join/join.1
index aa6f739..d7d115e 100644
--- a/usr.bin/join/join.1
+++ b/usr.bin/join/join.1
@@ -47,6 +47,7 @@
.Fl a Ar file_number | Fl v Ar file_number
.Oc
.Op Fl e Ar string
+.Op Fl j Ar fileno field
.Op Fl o Ar list
.Bk -words
.Ek
diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c
index 097ecbe..5e45850 100644
--- a/usr.bin/join/join.c
+++ b/usr.bin/join/join.c
@@ -661,9 +661,10 @@ jbad: errx(1, "illegal option -- %s", ap);
void
usage(void)
{
- (void)fprintf(stderr, "%s %s\n%s\n",
- "usage: join [-a fileno | -v fileno ] [-e string] [-1 field]",
- "[-2 field]",
- " [-o list] [-t char] file1 file2");
+ (void)fprintf(stderr, "%s %s\n%s %s\n",
+ "usage: join [-a fileno | -v fileno ]",
+ "[-e string] [-j fileno field]",
+ " [-1 field] [-2 field]",
+ "[-o list] [-t char] file1 file2");
exit(1);
}
OpenPOWER on IntegriCloud