Make usage message and man page synopsis reflect the fact that -n

and -c are mutually exclusive.

PR:		34233
Submitted by:	Gary W. Swearingen <swear@blarg.net>
MFC after:	3 days
This commit is contained in:
dwmalone 2002-01-24 22:27:50 +00:00
parent a76b3153c4
commit ffdbedf4c8
2 changed files with 5 additions and 3 deletions

View File

@ -40,8 +40,10 @@
.Nd display first lines of a file
.Sh SYNOPSIS
.Nm
.Op Fl n Ar count
.Op Fl c Ar bytes
.Oo
.Fl n Ar count |
.Fl c Ar bytes
.Oc
.Op Ar
.Sh DESCRIPTION
This filter displays the first

View File

@ -186,6 +186,6 @@ void
usage()
{
(void)fprintf(stderr, "usage: head [-n lines] [-c bytes] [file ...]\n");
(void)fprintf(stderr, "usage: head [-n lines | -c bytes] [file ...]\n");
exit(1);
}