From 5d4bef240cc581ec8d7021bdaec9c941d2d1291f Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 16 Jun 2024 15:50:42 +0000 Subject: Amend error message for unknown cli option. git-svn-id: svn://tug.org/texlive/trunk@71541 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/tests/fix-changefile-lines.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/tests/fix-changefile-lines.py b/Build/source/texk/web2c/tests/fix-changefile-lines.py index cacf06ae250..facce1bf5c3 100755 --- a/Build/source/texk/web2c/tests/fix-changefile-lines.py +++ b/Build/source/texk/web2c/tests/fix-changefile-lines.py @@ -241,9 +241,8 @@ class OptHandler: """ def __init__(self): - """Optional elements of the output format - '@x [{part}.{section}] l.{line} {-(hyphen)} {text}' - """ + # Optional elements of the output format + # '@x [{part}.{section}] l.{line} {-(hyphen)} {text}' self.part_b = True self.section_b = True self.line_b = True @@ -254,6 +253,9 @@ class OptHandler: opts, self.args = getopt.getopt(sys.argv[1:], "pslht", ["parts", "sections", "lines", "hyphens", "texts"]) except getopt.GetoptError as err: + eprint(f""" +{os.path.basename(sys.argv[0])}: {err}! +""") print(USAGE) sys.exit(1) -- cgit v1.2.3