Subject: bin/26281: missing option in the usage of tset(1)
To: None <>
From: None <>
List: netbsd-bugs
Date: 07/14/2004 11:59:57
>Number:         26281
>Category:       bin
>Synopsis:       missing option in the usage of tset(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:01:00 UTC 2004
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
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
	-E is missing in the usage of tset(1).

	see usage

	* add -E to usage
	* use getprogname()
	* sort options (manpage)

Index: tset/tset.1
RCS file: /cvs/cvsroot/src/usr.bin/tset/tset.1,v
retrieving revision 1.14
diff -u -r1.14 tset.1
--- tset/tset.1	7 Aug 2003 11:16:49 -0000	1.14
+++ tset/tset.1	13 Jul 2004 20:22:07 -0000
@@ -116,9 +116,6 @@
 .It Fl
 The terminal type is displayed to the standard output, and the terminal is
 not initialized in any way.
-.It Fl e
-Set the erase character to
-.Ar ch .
 .It Fl E
 Emit the extended termcap entry.
 By default the termcap entry is
@@ -126,6 +123,9 @@
 entry is to be output.
 Using this flag may cause problems with some
+.It Fl e
+Set the erase character to
+.Ar ch .
 .It Fl I
 Do not send the terminal or tab initialization strings to the terminal.
 .It Fl i
Index: tset/tset.c
RCS file: /cvs/cvsroot/src/usr.bin/tset/tset.c,v
retrieving revision 1.13
diff -u -r1.13 tset.c
--- tset/tset.c	7 Aug 2003 11:16:49 -0000	1.13
+++ tset/tset.c	14 Jul 2004 00:57:39 -0000
@@ -314,6 +314,7 @@
-"usage: tset [-IQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]\n");
+"usage: %s [-EIQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]\n",
+	getprogname());