From ecca80bd97c078519d32a5f0a06b6a25c70aef79 Mon Sep 17 00:00:00 2001 From: David Malone Date: Thu, 24 Jan 2002 22:27:50 +0000 Subject: [PATCH] Make usage message and man page synopsis reflect the fact that -n and -c are mutually exclusive. PR: 34233 Submitted by: Gary W. Swearingen MFC after: 3 days --- usr.bin/head/head.1 | 6 ++++-- usr.bin/head/head.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.bin/head/head.1 b/usr.bin/head/head.1 index 2f9e83d5435..cc50afd6e87 100644 --- a/usr.bin/head/head.1 +++ b/usr.bin/head/head.1 @@ -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 diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c index 6af287c1d38..94d99f9f828 100644 --- a/usr.bin/head/head.c +++ b/usr.bin/head/head.c @@ -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); }