Subject: bin/26280: missing term in the usage of tput(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/14/2004 11:58:59
>Number: 26280
>Category: bin
>Synopsis: missing term in the usage of tput(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 14 03:00:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #22: Tue Jul 13 19:08:03 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
`[attribute-args]' is missing in the usage of tput(1).
>How-To-Repeat:
see usage
>Fix:
* add `[attribute-args]' to usage
* use getprogname()
Index: tput/tput.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/tput/tput.c,v
retrieving revision 1.15
diff -u -r1.15 tput.c
--- tput/tput.c 7 Aug 2003 11:16:46 -0000 1.15
+++ tput/tput.c 14 Jul 2004 00:59:40 -0000
@@ -229,6 +229,8 @@
static void
usage()
{
- (void)fprintf(stderr, "usage: tput [-T term] attribute ...\n");
+ (void)fprintf(stderr,
+ "usage: %s [-T term] attribute [attribute-args] ...\n",
+ getprogname());
exit(1);
}
>Release-Note:
>Audit-Trail:
>Unformatted: