summaryrefslogtreecommitdiff
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2004-07-13 12:07:51 +0000
committerwiz <wiz@NetBSD.org>2004-07-13 12:07:51 +0000
commitf4128b317e877a6ab33d20bcc9606d5af8df9af5 (patch)
treee6bc507eb52f955d1dd8644e1b3ac0d6a772a091 /usr.bin/script/script.c
parent5e4aaf0ef00075319f2cce30114d69781ee47420 (diff)
Add -d to usage; use getprogname(3). From Kouichirou Hiratsuka in PR 26227.
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 640a571ec81..43e87bbaa5e 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: script.c,v 1.9 2003/08/07 11:15:48 agc Exp $ */
+/* $NetBSD: script.c,v 1.10 2004/07/13 12:07:51 wiz Exp $ */
/*
* Copyright (c) 1980, 1992, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1992, 1993\n\
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: script.c,v 1.9 2003/08/07 11:15:48 agc Exp $");
+__RCSID("$NetBSD: script.c,v 1.10 2004/07/13 12:07:51 wiz Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -120,7 +120,8 @@ main(argc, argv)
break;
case '?':
default:
- (void)fprintf(stderr, "usage: script [-apr] [file]\n");
+ (void)fprintf(stderr, "usage: %s [-adpr] [file]\n",
+ getprogname());
exit(1);
}
argc -= optind;