Skip to content
New issue

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

Fix CLI command usage regressions #386

Merged
merged 5 commits into from
Apr 12, 2016
Merged

Fix CLI command usage regressions #386

merged 5 commits into from
Apr 12, 2016

Conversation

akx
Copy link
Member

@akx akx commented Apr 11, 2016

This fixes #384 and includes @sebdiem 's patch from #383 (which fixes #385 too).

@codecov-io
Copy link

Current coverage is 90.08%

Merging #386 into master will increase coverage by +0.11% as of ce8e2c7

@@            master    #386   diff @@
======================================
  Files           24      24       
  Stmts         3931    3935     +4
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit           3537    3545     +8
  Partial          0       0       
+ Missed         394     390     -4

Review entire Coverage Diff as of ce8e2c7

Powered by Codecov. Updated on successful CI builds.

@@ -248,12 +248,12 @@ class extract_messages(Command):
'set project version in output'),
('add-comments=', 'c',
'place comment block with TAG (or those preceding keyword lines) in '
'output file. Separate multiple TAGs with commas(,)'),
'output file. Separate multiple TAGs with commas(,)'), # TODO: Support repetition of this argument
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly necessary, but I'm a fan of linking these to issue numbers, like TODO(#386): or something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refs are visible in the Git commit messages too, so not going to bother adding issue id this time :)

akx and others added 4 commits April 12, 2016 09:20
The 'no-wrap', 'ignore-obsolete', 'no-fuzzy-matching', 'previous' and
'update-header-comment' were not correctly parsed in the update_catalog
command.
@akx akx merged commit bec1151 into python-babel:master Apr 12, 2016
@akx akx deleted the fix-384 branch April 12, 2016 06:31
if split: # Generate a command line with multiple -ks
kwarg_text = " ".join("-k %s" % kwarg_spec for kwarg_spec in kwarg_specs)
else: # Generate a single space-separated -k
kwarg_text = "-k \"%s\"" % " ".join(kwarg_specs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's cleaner to use single quotes (') for the outer string to avoid needing to escape the inner double quote ("), but up to you.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, honestly using double quotes is a habit I've learned both from writing C and from the fact that the double quote is easier to write on a Finnish keyboard than the single quote: Shift+2 vs. a separate key right next to Enter :)

But yeah, could've just as well used single quotes there!

@akx akx mentioned this pull request Apr 22, 2016
clrpackages pushed a commit to clearlinux-pkgs/Babel that referenced this pull request Jul 12, 2016
Version 2.3.3
-------------

(Bugfix release, released on April 12th)

Bugfixes
~~~~~~~~

* CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (python-babel/babel#386) Thanks to @ajaeger, @sebdiem and @jcristovao for bug reports and patches.
@pyup-bot pyup-bot mentioned this pull request Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange new syntax for update --no-fuzzy-matching Babel 2.3.2 ignores ungettext_lazy
4 participants