Add -j flag to usage() and the man page synopsis.

Inspired by:	DragonFlyBSD
This commit is contained in:
Maxim Konovalov 2004-08-25 13:15:07 +00:00
parent f0c8658d4e
commit 64215f652a
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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);
}