diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2024-06-16 15:50:42 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2024-06-16 15:50:42 +0000 |
commit | 5d4bef240cc581ec8d7021bdaec9c941d2d1291f (patch) | |
tree | c4cc392f8af968352048b5532757710b278cba67 /Build/source/texk/web2c/tests | |
parent | 30891cc4de7d42a75d180cb6560203a849c2714e (diff) |
Amend error message for unknown cli option.
git-svn-id: svn://tug.org/texlive/trunk@71541 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/tests')
-rwxr-xr-x | Build/source/texk/web2c/tests/fix-changefile-lines.py | 8 |
1 files changed, 5 insertions, 3 deletions
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) |