-
Notifications
You must be signed in to change notification settings - Fork 418
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
showDefaultValues=true plus defaultValueProvider does not render defaultValues in usage help #616
Comments
Thanks for the bug report! I'll take a look as soon as I can. |
I found the cause. I'll have a fix for this shortly. |
…ot render defaultValues in usage help
Fixed in master. |
…ot render defaultValues in usage help
@remkop thanks for the fast fix! where can I find the snapshot artifacts to verify the fix? |
Can you build locally? I don’t publish snapshots but one of the Gradle tasks is to publish to the local Maven repo. You can then refer to the snapshot build in your project. |
Picocli 3.9.3 has been released. This includes a fix for this issue. Enjoy! |
Specifying the default value of an option via an
IDefaultValueProvider
and settingshowDefaultValues = true
does not display the default vaulue as part of the standard usage help.Example Code:
Only when I additionally set
@Option(showDefaultValue=Help.Visibility.ALWAYS)
for the respective option the value is displayed or when I explicitly set a default value directly via@Option(defaultValue="1200")
The text was updated successfully, but these errors were encountered: