jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

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

Open shaburov opened this issue 1 year ago • 6 comments

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

image

image

shaburov avatar Oct 11 '23 16:10 shaburov

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 avatar Nov 12 '23 09:11 mkarg

@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

shaburov avatar Dec 18 '23 18:12 shaburov

A little more information image

shaburov avatar Dec 18 '23 19:12 shaburov

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

mkarg avatar Dec 19 '23 08:12 mkarg

@shaburov "ping";-)

mkarg avatar Feb 18 '24 13:02 mkarg

@shaburov I am bit confused. Apparently this bug seemed to be important enough for you to set up a very decent report, but now you are not responding. Could you please pick up this conversation again? Thanks.

mkarg avatar Apr 27 '24 09:04 mkarg