mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-129911: pygettext: Fix the keyword entry in help output (GH-129914)
This commit is contained in:
parent
3bd3e09588
commit
9d1e668e6f
3 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue