('add-comments=', 'c',
'place comment block with TAG (or those preceding keyword lines) in '
'output file. Separate multiple TAGs with commas(,)'), # TODO: Support repetition of this argument
- ('strip-comments', None,
+ ('strip-comments', 's',
'strip the comment TAGs from the comments.'),
('input-paths=', None,
'files or directories that should be scanned for messages. Separate multiple '
assert cmdinst.no_fuzzy_matching is True
assert cmdinst.ignore_obsolete is True
assert cmdinst.previous is False # Mutually exclusive with no_fuzzy_matching
+
+
+def test_extract_cli_knows_dash_s():
+ # This is a regression test for https://github.com/python-babel/babel/issues/390
+ cmdinst = configure_cli_command("extract -s -o foo babel")
+ assert isinstance(cmdinst, extract_messages)
+ assert cmdinst.strip_comments