Skip to content

Created Cmd2RichArgparseConsole to prevent rich-argparse help from being truncated. #1484

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

Merged
merged 1 commit into from
Aug 22, 2025

Conversation

kmvanbrunt
Copy link
Member

The class doesn't enable soft wrapping, which restores Rich's default behavior and ensures long lines wrap correctly.

Copy link

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.75%. Comparing base (13ddf69) to head (82601ff).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1484      +/-   ##
==========================================
- Coverage   98.77%   98.75%   -0.02%     
==========================================
  Files          23       23              
  Lines        4884     4894      +10     
==========================================
+ Hits         4824     4833       +9     
- Misses         60       61       +1     
Flag Coverage Δ
unittests 98.75% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@kmvanbrunt kmvanbrunt force-pushed the rich-argparse-console branch from 7d782dd to d2a0bbf Compare August 21, 2025 23:31
Created Cmd2RichArgparseConsole, which doesn't enable soft wrapping.
This resolves a conflict with the rich-argparse formatter's explicit
no_wrap and overflow settings.
@kmvanbrunt kmvanbrunt force-pushed the rich-argparse-console branch from d2a0bbf to 82601ff Compare August 21, 2025 23:55
@kmvanbrunt kmvanbrunt merged commit 18831d1 into main Aug 22, 2025
29 of 30 checks passed
@kmvanbrunt kmvanbrunt deleted the rich-argparse-console branch August 22, 2025 15:29
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