-
Notifications
You must be signed in to change notification settings - Fork 193
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
First stab at nicely formatted cli help output using Rich. #1403
Conversation
Took code from rich-cli written by @willmcgugan and played around with until it worked for us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
Don't merge yet - just figured out why the version wasn't printed. We're skipping the first argument because I copied over some code without understanding why it was there 👀 The Now looking into a way to detect these and give them dedicated styling. |
Ok, sorted it. I started adding support for a panel dedicated to arguments, but then realised that there isn't really much that we can print. It seems that this is intentional on the part of |
Codecov Report
@@ Coverage Diff @@
## dev #1403 +/- ##
==========================================
+ Coverage 66.78% 66.88% +0.10%
==========================================
Files 50 50
Lines 5714 5762 +48
==========================================
+ Hits 3816 3854 +38
- Misses 1898 1908 +10
Continue to review full report at Codecov.
|
Took code from rich-cli written by @willmcgugan and played around with until it worked for us.
It's so pretty 🤩
We have a custom@click.version_option()
which doesn't seem to make it into the help, I don't know how to fix this.PR checklist
CHANGELOG.md
is updateddocs
is updated