From 5810faeee1a1b607d5ab1ac30677d868302177e6 Mon Sep 17 00:00:00 2001 From: maxim Date: Wed, 25 Aug 2004 13:15:07 +0000 Subject: Add -j flag to usage() and the man page synopsis. Inspired by: DragonFlyBSD --- usr.bin/join/join.1 | 1 + usr.bin/join/join.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'usr.bin/join') 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); } -- cgit v1.1