gh-129911: pygettext: Fix the keyword entry in help output (GH-129914)

This commit is contained in:
Tomas R. 2025-02-14 10:34:09 +01:00 committed by GitHub
parent 3bd3e09588
commit 9d1e668e6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -67,7 +67,8 @@
-k word
--keyword=word
Keywords to look for in addition to the default set, which are:
%(DEFAULTKEYWORDS)s
_, gettext, ngettext, pgettext, npgettext, dgettext, dngettext,
dpgettext, and dnpgettext.
You can have multiple -k flags on the command line.
@ -169,7 +170,7 @@
def usage(code, msg=''):
print(__doc__ % globals(), file=sys.stderr)
print(__doc__, file=sys.stderr)
if msg:
print(msg, file=sys.stderr)
sys.exit(code)