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

argparse: colorize the --help output with rich-argparse #2080

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

mr-c
Copy link
Member

@mr-c mr-c commented Nov 30, 2024

Makes the argument groups really stand out

Example of cwltool --help colored output.

cwltool--help

Example of cwltool tests/CometAdapter.cwl --help

CometAdapter cwl

Copy link

codecov bot commented Nov 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.25%. Comparing base (6b8f06a) to head (e9b873e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2080      +/-   ##
==========================================
+ Coverage   84.23%   84.25%   +0.02%     
==========================================
  Files          46       46              
  Lines        8320     8334      +14     
  Branches     1961     1961              
==========================================
+ Hits         7008     7022      +14     
  Misses        836      836              
  Partials      476      476              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mr-c mr-c changed the title argpase: colorize the --help output with rich-argparse argparse: colorize the --help output with rich-argparse Dec 4, 2024
@mr-c mr-c force-pushed the rich_argparse_help branch 6 times, most recently from 7f686b4 to e4ec43b Compare December 10, 2024 14:39
@mr-c
Copy link
Member Author

mr-c commented Dec 12, 2024

I will merge this once the Debian FTP team has approved my packaging of the rich-argparse Python package. https://bugs.debian.org/1089150 + https://ftp-master.debian.org/new.html

@mr-c mr-c marked this pull request as ready for review December 13, 2024 22:33
@mr-c mr-c force-pushed the rich_argparse_help branch from e4ec43b to e9b873e Compare December 13, 2024 22:33
@mr-c mr-c enabled auto-merge (rebase) December 13, 2024 22:33
@mr-c mr-c disabled auto-merge December 14, 2024 20:44
@mr-c mr-c merged commit f1d192d into main Dec 14, 2024
46 checks passed
@mr-c mr-c deleted the rich_argparse_help branch December 14, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant