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

If flags and params are too long, description is missing from help output #389

Closed
AloeareV opened this issue Nov 9, 2020 · 2 comments
Closed

Comments

@AloeareV
Copy link

AloeareV commented Nov 9, 2020

When Options is derived, the usage() output will have an extra \n after long_param if -short, --long long_param is longer than 29 characters. This causes long_param to be set to None, description to be set to what should be long_param, and the actual help description from that flag to be missing from the help output entirely.

Using lines() here doesn't work:

for line in usage.lines() {

@tony-iqlusion
Copy link
Member

tony-iqlusion commented Nov 12, 2020

The longer-term solution to these sorts of issues is an eventual migration to clapv3. See #298 and #330.

For the interim issues like this are unlikely to be solved unless you'd like to submit a PR.

@tony-iqlusion
Copy link
Member

Closed by #562 (clap v3 migration)

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

No branches or pull requests

2 participants