Click: Friendly __repr__ for Command

Created on 28 Mar 2019  路  2Comments  路  Source: pallets/click

(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!

Most helpful comment

I'm going to take a stab at this

All 2 comments

I'm going to take a stab at this

Thanks for fixing this, @jzengg!

Was this page helpful?
0 / 5 - 0 ratings