summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvidvi/ChangeLog5
-rw-r--r--Build/source/texk/dvidvi/dvidvi.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/dvidvi/ChangeLog b/Build/source/texk/dvidvi/ChangeLog
index d83fdff6679..0729680716b 100644
--- a/Build/source/texk/dvidvi/ChangeLog
+++ b/Build/source/texk/dvidvi/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-15 Karl Berry <karl@freefriends.org>
+
+ * dvidvi.c: report actual bad option letter,
+ and say to use -? instead of duplicating.
+
2018-05-14 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* dvidvi.c: Adjust 'Bad option' error message.
diff --git a/Build/source/texk/dvidvi/dvidvi.c b/Build/source/texk/dvidvi/dvidvi.c
index fa4c54cb2f4..a48890338f8 100644
--- a/Build/source/texk/dvidvi/dvidvi.c
+++ b/Build/source/texk/dvidvi/dvidvi.c
@@ -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 @@ case '?' :
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 */