From 233a60bef25c12ef9b6757c17a88a1fb806bbfb9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 25 Apr 1998 00:25:38 +0000 Subject: fix usage --- usr.bin/man/man.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'usr.bin/man') 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); } -- cgit v1.2.3