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

Changes introduced to string quoting in responses #1499

Open
kriolyth opened this issue Mar 11, 2020 · 2 comments
Open

Changes introduced to string quoting in responses #1499

kriolyth opened this issue Mar 11, 2020 · 2 comments
Labels

Comments

@kriolyth
Copy link

@kriolyth kriolyth commented Mar 11, 2020

First of all, thank you for maintaining this wonderful project!

We've been running CI tests on our product that uses click, and tests for command-line stumbled upon a change in output representation introduced in "manual cleanup" commit.

I do not see this as an issue in click, but it took some time to find the origin, and so I suggest to mention effects of this change in documentation or changelog.

Thank you!


Expected Behavior

Previously a missing option string was displayed with double-quotes:

Error: Missing option "--os".

Actual Behavior

Now a missing option string is displayed with single-quotes, as per repr() implementation:

Error: Missing option '--os'.

Environment

  • Python version: 3.8
  • Click version: 7.1.1
@WhyNotHugo
Copy link

@WhyNotHugo WhyNotHugo commented Apr 19, 2020

This change broke a bunch of tests for me, and it took quite a while to figure out what was wrong. Looks like there's no changelog entry for this, even though it's very breaking. Is the intention to keep it this way? Can this be added to the logs?

@davidism davidism modified the milestone: 7.1.2 Apr 20, 2020
@brianv0
Copy link

@brianv0 brianv0 commented Apr 25, 2020

Running across this. I can't find out if this was a permanent behavior change or is a bug which will be fixed in a subsequent release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.