cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.94k stars 332 forks source link

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

Open shaburov opened 10 months ago

shaburov commented 10 months ago

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

image

image

mkarg commented 9 months ago

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! :-)

shaburov commented 8 months ago

@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 commented 8 months ago

A little more information image

mkarg commented 8 months ago

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

mkarg commented 6 months ago

@shaburov "ping";-)

mkarg commented 4 months ago

@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.