diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-25 00:25:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-25 00:25:38 +0000 |
commit | 233a60bef25c12ef9b6757c17a88a1fb806bbfb9 (patch) | |
tree | ad562d8dff92f4f7aec1ea28488b405c34bba46c /usr.bin | |
parent | 51cef0af608d8e1a144f97487dfaa0e4b5a50dce (diff) |
fix usage
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/man/man.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/man/man.c b/usr.bin/man/man.c index 10d71092095..65287ae4e17 100644 --- a/usr.bin/man/man.c +++ b/usr.bin/man/man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man.c,v 1.7 1998/03/09 23:20:13 millert Exp $ */ +/* $OpenBSD: man.c,v 1.8 1998/04/25 00:25:37 millert Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else -static char rcsid[] = "$OpenBSD: man.c,v 1.7 1998/03/09 23:20:13 millert Exp $"; +static char rcsid[] = "$OpenBSD: man.c,v 1.8 1998/04/25 00:25:37 millert Exp $"; #endif #endif /* not lint */ @@ -68,6 +68,8 @@ static char rcsid[] = "$OpenBSD: man.c,v 1.7 1998/03/09 23:20:13 millert Exp $"; int f_all, f_where; +extern char *__progname; + static void build_page __P((char *, char **)); static void cat __P((char *)); static char *check_pager __P((char *)); @@ -757,7 +759,7 @@ cleanup() static void usage() { - (void)fprintf(stderr, - "usage: man [-achw] [-C file] [-M path] [-m path] [section] title ...\n"); + (void)fprintf(stderr, "usage: %s [-achw] [-C file] [-M path] [-m path] " + "[-s section] [-S subsection] [section] title ...\n", __progname); exit(1); } |