-
Notifications
You must be signed in to change notification settings - Fork 420
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
The setUsageHelpLongOptionsMaxWidth method launchs exception when running on terminal with small width #1708
Labels
Milestone
Comments
Yes, that makes sense. |
remkop
added
type: enhancement ✨
theme: usagehelp
An issue or change related to the usage help message
labels
Jun 14, 2022
Sure, but probably I will do that on the weekend. |
I miss-clicked and accidentally merged before reviewing. 😅 |
Hi @remkop, no worries! 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hi, I saw that the default behavior of the
setUsageHelpLongOptionsMaxWidth
method is to trigger an exception if the width of the terminal is small. However, I think that makes sense to set the width of options when possible (mid/big screen) but just skip it when it is not possible, instead of failure with this exception:For example, letting the behavior with an exception makes me do a workaround that works because I am using
setUsageHelpAutoWidth(true)
. I think that other people will potentially do a similar thing to avoid the failure (or try-catch it).Is that possible to change the behavior to avoid the exception by just ignoring the value passed to
setUsageHelpLongOptionsMaxWidth
when the terminal width is too small?The text was updated successfully, but these errors were encountered: