From f52b4ea3f576190e0a9f04b262929319fd80de26 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 15 May 2018 17:37:55 +0000 Subject: report actual bad option letter given; avoid redundant list of all options git-svn-id: svn://tug.org/texlive/trunk@47723 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvidvi/ChangeLog | 5 +++++ Build/source/texk/dvidvi/dvidvi.c | 5 +++-- 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 + + * dvidvi.c: report actual bad option letter, + and say to use -? instead of duplicating. + 2018-05-14 Hironobu Yamashita * 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 */ -- cgit v1.2.3