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

Friendly __repr__ for Command #1267

Closed
twosigmajab opened this issue Mar 28, 2019 · 2 comments
Closed

Friendly __repr__ for Command #1267

twosigmajab opened this issue Mar 28, 2019 · 2 comments
Labels
Milestone

Comments

@twosigmajab
Copy link

@twosigmajab twosigmajab commented Mar 28, 2019

(Pdb) pp cmd
<click.core.Command object at 0x7ff869ef1550>
(Pdb) pp cmd.name
'run-gunicorn'

What do you think of showing the command name in the __repr__ string, for friendlier debugging? Could be a good beginner-friendly issue!

@jcrotts jcrotts added the enhancement label May 6, 2019
@jzengg

This comment has been minimized.

Copy link
Contributor

@jzengg jzengg commented May 6, 2019

I'm going to take a stab at this

@jcrotts jcrotts added this to the 8.0 milestone May 6, 2019
@twosigmajab

This comment has been minimized.

Copy link
Author

@twosigmajab twosigmajab commented May 11, 2019

Thanks for fixing this, @jzengg!

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.

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