Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion babel/messages/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ class UpdateCatalog(CommandMixin):
"name of the output file (default "
"'<output_dir>/<locale>/LC_MESSAGES/<domain>.po')"),
('omit-header', None,
"do not include msgid "" entry in header"),
'do not include msgid "" entry in header'),
('locale=', 'l',
'locale of the catalog to compile'),
('width=', 'w',
Expand Down
5 changes: 5 additions & 0 deletions tests/messages/frontend/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ def test_update_catalog_boolean_args():
assert cmdinst.previous is False # Mutually exclusive with no_fuzzy_matching


def test_update_catalog_omit_header_help():
options = {name: help for name, _short, help in UpdateCatalog.user_options}
assert options['omit-header'] == 'do not include msgid "" entry in header'


def test_compile_catalog_dir(tmp_path):
"""
Test that `compile` can compile all locales in a directory.
Expand Down