Subject: bin/26387: missing term in the usage of vis(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/21/2004 12:01:28
>Number: 26387
>Category: bin
>Synopsis: missing term in the usage of vis(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 21 03:23: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) #28: Wed Jul 21 08:53:20 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
`[file ...]' is missing in the usage of vis(1).
>How-To-Repeat:
see usage
>Fix:
* add `[file ...]' to usage
* use getprogname()
Index: vis/vis.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/vis/vis.c,v
retrieving revision 1.10
diff -u -r1.10 vis.c
--- vis/vis.c 22 Apr 2004 06:35:02 -0000 1.10
+++ vis/vis.c 21 Jul 2004 02:42:26 -0000
@@ -114,7 +114,8 @@
case '?':
default:
fprintf(stderr,
- "usage: vis [-bcfhlnostw] [-e extra] [-F foldwidth]\n");
+ "usage: %s [-bcfhlnostw] [-e extra] [-F foldwidth]"
+ " [file ...]\n", getprogname());
exit(1);
}
argc -= optind;
>Release-Note:
>Audit-Trail:
>Unformatted: