We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The --keyword entry when printing the help via ./python Tools/i18n/pygettext.py --help shows the whole keyword dictionary:
--keyword
./python Tools/i18n/pygettext.py --help
-k word --keyword=word Keywords to look for in addition to the default set, which are: {'_': {0: 'msgid'}, 'gettext': {0: 'msgid'}, 'ngettext': {0: 'msgid', 1: 'msgid_plural'}, 'pgettext': {0: 'msgctxt', 1: 'msgid'}, 'npgettext': {0: 'ms gctxt', 1: 'msgid', 2: 'msgid_plural'}, 'dgettext': {1: 'msgid'}, 'dngettext': {1: 'msgid', 2: 'msgid_plural'}, 'dpgettext': {1: 'msgctxt', 2: 'msgid'}, 'dnpg ettext': {1: 'msgctxt', 2: 'msgid', 3: 'msgid_plural'}} You can have multiple -k flags on the command line.
This is because the format of DEFAULTKEYWORDS recently changed from a list to a dictionary. We should just list the function names as we did before.
DEFAULTKEYWORDS
CPython main branch
No response
The text was updated successfully, but these errors were encountered:
topic-tools
gh-129911: pygettext: Fix the keyword entry in help output (GH-129914)
9d1e668
tomasr8
No branches or pull requests
Bug report
Bug description:
The
--keyword
entry when printing the help via./python Tools/i18n/pygettext.py --help
shows the whole keyword dictionary:This is because the format of
DEFAULTKEYWORDS
recently changed from a list to a dictionary.We should just list the function names as we did before.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: