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:
parent
a76b3153c4
commit
ffdbedf4c8
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user