aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/join
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2004-08-25 13:15:07 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2004-08-25 13:15:07 +0000
commit64215f652a7c148979694d9355eb21f9718141ce (patch)
tree4de0bdd05bbde1ccc43c75b65283eff729419fe8 /usr.bin/join
parentf0c8658d4ecfcd4f0671a3328c092147c4e88b84 (diff)
downloadsrc-64215f652a7c148979694d9355eb21f9718141ce.tar.gz
src-64215f652a7c148979694d9355eb21f9718141ce.zip
Add -j flag to usage() and the man page synopsis.
Inspired by: DragonFlyBSD
Notes
Notes: svn path=/head/; revision=134293
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 aa6f73903a9c..d7d115ee5cae 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 097ecbe743f9..5e4585010188 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);
}