texlive[47723] Build/source/texk/dvidvi: report actual bad option
commits+karl at tug.org
commits+karl at tug.org
Tue May 15 19:37:56 CEST 2018
Revision: 47723
http://tug.org/svn/texlive?view=revision&revision=47723
Author: karl
Date: 2018-05-15 19:37:55 +0200 (Tue, 15 May 2018)
Log Message:
-----------
report actual bad option letter given; avoid redundant list of all options
Modified Paths:
--------------
trunk/Build/source/texk/dvidvi/ChangeLog
trunk/Build/source/texk/dvidvi/dvidvi.c
Modified: trunk/Build/source/texk/dvidvi/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvidvi/ChangeLog 2018-05-15 14:37:44 UTC (rev 47722)
+++ trunk/Build/source/texk/dvidvi/ChangeLog 2018-05-15 17:37:55 UTC (rev 47723)
@@ -1,3 +1,8 @@
+2018-05-15 Karl Berry <karl at freefriends.org>
+
+ * dvidvi.c: report actual bad option letter,
+ and say to use -? instead of duplicating.
+
2018-05-14 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
* dvidvi.c: Adjust 'Bad option' error message.
Modified: trunk/Build/source/texk/dvidvi/dvidvi.c
===================================================================
--- trunk/Build/source/texk/dvidvi/dvidvi.c 2018-05-15 14:37:44 UTC (rev 47722)
+++ trunk/Build/source/texk/dvidvi/dvidvi.c 2018-05-15 17:37:55 UTC (rev 47723)
@@ -34,7 +34,7 @@
#define SEEK_CUR 1
#define SEEK_END 2
-#define BANNER "\nThis is dvidvi 1.1, Copyright (C) 1988-91, Radical Eye Software\n" \
+#define BANNER "\nThis is dvidvi 1.1, Copyright 1988-1991 Radical Eye Software\n" \
"Improved from 1.0 to 1.1, 1994, Markus Kohm\n"
#define STRINGSIZE (500L) /* maximum number of strings in program */
@@ -772,7 +772,8 @@
usage() ;
break ;
default:
- error("! Bad option, not one of fijlmnpqrx?") ;
+ fprintf(stderr, "dvidvi: Bad option %c\n", c);
+ error("! Try -? for more information") ;
} /* switch c */
} else { /* this a file name */
if (*iname == 0) { /* input file name */
More information about the tex-live-commits
mailing list