cbeust/jcommander

[Bug] unexpected throw ParameterException("Password parameter must have at most 1 argument.")

shaburov opened this issue · 6 comments

jCommander.parse(args) throw ParameterException("Password parameter must have at most 1 argument.") when processing multiple fields marked as password

image

image

Thank you for reporting this bug. This is an open source project, so I like to invite you to file a pull request to fix it! :-)

@mkarg I just can't imagine how to fix it. There is clearly an error in defining the number of variables and possible values.
Here is another clear example of an error in determining the number of input values.

Please fix it. Very painful.

image

A little more information
image

Thank you for this additional information. Do you feel confident writing a unit test for each bug?