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:
David Malone 2002-01-24 22:27:50 +00:00
parent 9df24552a0
commit ecca80bd97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89767
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);
}