-
Notifications
You must be signed in to change notification settings - Fork 425
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
content format when missing required option #1443
Comments
Thanks, the screenshot helped! By default the usage help width is 80 characters, but this is configurable: |
Thanks @remkop, it works great. For the options lists below the usage line, is there a way to set the width too ? For example, the option lines for -baselineselector and -snapath break. |
HI @remkop , I am sorry, but I did not find the method setLongOptionsMaxWidth in CommandLine. I tried to set spec.usageMessage().longOptionsMaxWidth(120); but it did not help. |
Looks like I got the name of the It needs to be set before the help is shown. |
yes, it works perfect, thank you ! |
I fixed the user manual. |
Hi,
This issue should be a question other than bug. Thank you for your help in advance !
The question is when one required option was missing, the usage out put doesn't display the command in one line.
For example as below, I expect that "synctl export -baselineselector= -loadrule= -snapath=" could be displayed in one line but it's wrapped.
c:\shared\vvctl>synctl.bat export -baselineselector wp_zxm_proj1_Int_0.12.0 -snapath C:\myview1
Missing required option '-loadrule='
export data
Usage: synctl export -baselineselector= -loadrule=
-snapath=
-baselineselector=
baseline selector name
-loadrule= load rule
-snapath=
snapshot path
The text was updated successfully, but these errors were encountered: