Open timja opened 3 years ago
The bug was introduced in the original PR with defaults support: https://github.com/kohsuke/args4j/pull/102/files#diff-ae8264f9f90560e7c61c15563435d12ec2fff8b905db41cf85d328e6a9a6e237R375-R379 . getter#getValue() indeed returns the field value
The Jenkins CLI prints a help text when a command is not used correctly. This help text includes information about the default values of parameters that can be specified.
If the invocation that triggers this help text provides values for parameters, those are shown instead of the actual defaults.
Output below based on core PR 4274 which adds the "reason" parameter (and made me wonder what sort of default value "bar" is!?), but affects other commands:
Here's a fun one:
Originally reported by danielbeck, imported from: CLI shows provided values as "default"