summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-27Fixed: A default fulfils requirement, but does not count as assignment.upstream-masterMarkus KARG
2024-04-11Fix an NPE (#579)Lai Jiang
When mainParameter is null (which is the default), calling getMainParameterValue()/getMainParameterDescription() throws an NPE because it tries to access a field on a null object. Co-authored-by: Markus KARG <markus@headcrashing.eu>
2023-12-24Asciidoctor formattingMarkus KARG
2023-12-22439 expand dynamic arg expands non dynamic args (#440)Nils Petzäll
* Added failing test when DynamicParameter name is beginning of Parameter name * JCommander.expandDynamicArg, assignment string should be present in arg
2023-12-22Updated index.htmlMarkus KARG
2023-12-21Order parameters with the same order by name in usage()Martin Nonnenmacher
Parameters without order are sorted by name, do the same for parameters with the same order for consistency.
2023-12-21Asserting that double quotes are not removed.Jan de Gorter
2023-12-17Simplified code / Fixed typoMarkus KARG
2023-12-17Fix #379XxxXxxXxx233
2023-12-17Replace arrayOf with array literals in Kotlin sampleAndrey Mischenko
2023-12-17Simplified testMarkus KARG
2023-12-17Keep original exception thrown by the parameter setter methodSergii Druzkin
This change adds the exception thrown by a setter method annotated with the @Parameter to the ParameterException. Before this change it was not clear what exactly happened, because ParameterException did not have the original exception thrown by the @Parameter setter method.
2023-12-17Fixes #557: Now validates BEFORE conversionMarkus KARG
2023-10-21Fixed: Broken link to TestNG exampleMarkus KARG
2023-10-21Creating apidocs using JavaDoc when documentation is createdMarkus KARG
2023-10-12Allow acceptUnknownOption with variableArity (#555)hsudhof
* Allow acceptUnknownOption with variableArity VariableArity makes it difficult to decide whether a token belongs to a preceding variableArity Parameter or is a new unknown parameter. This commits makes a variableArity Parameter consume all tokens until it encounters a known option. Fixes: #377 * Change test to use '=' separator only for new case
2023-10-08Fixed: Default value of primitive type must not satisfy required = trueMarkus KARG
2023-10-08Simplified code: No need for public classMarkus KARG
2023-10-08No ParameterException if a default value assigned for required paramsHiroshi Wada
If a default value is assigned to a required parameter on its initialization, JCommander won't throw ParameterException even if no value is given by user. Due to this fix JCommanderTest#requiredFields1Fail did not fail anymore since Args1#verbose was a required parameter with a default value. To distinguish the two cases when a required parameter has no default value and has a default value, this commit removes the default value from Args1#verbose.
2023-10-07Fixed documentation: Contributor fixed inidex.html instead of index.adocMarkus KARG
2023-10-07Example for @Parameter on setter methodT Naeff
Example for @Parameter on setter method
2023-10-07Fixed docs formattingMarkus KARG
2023-10-07Mentioning Charset converter in docsMarkus KARG
2023-10-07Improved ByteOrderConverterTest: Removing unused ExceptionMarkus KARG
2023-10-07Adds a CharsetConverter.Gary Gregory
2023-10-07Mentioning ByteOrder converter in docsMarkus KARG
2023-10-07Improved ByteOrderConverterTest: Proofs that parameter may be in mixed caseMarkus KARG
2023-10-07Adds a ByteOrderConverter.Gary Gregory
2023-10-07Improved VariableArityTest: Proofs that unknown options are safely passed ↵Markus KARG
through
2023-10-04Test for dontShowNullForMissingCommandDescriptionMarkus KARG
2023-10-04Fix usage() for missing description on commandsJoe Koshakow
Before this commit, if you supply a command to a JCommander object and you dont supply a description for the command, then when calling usage() you will see a line of the following format: "<command-name> null" After this commit the string literal "null" will be omitted from the usage() call if you do not supply a description for the command. Fixes #480
2023-10-02Moved description of defaultValueDescription to usage chapterMarkus KARG
2023-10-02Docs for @Parameter(defaultValueDescription)Markus KARG
2023-10-02Fixed backwards compatiblity fail: ParameterDescription.getDefault() must ↵Markus KARG
not produce different result as existing code relies on current behavior
2023-10-02Simplified CodeMarkus KARG
2023-10-02Fixed test fail: NullPointerException in ParameterDescription line 173Markus KARG
2023-10-02Fixed #471 @Param(default = ) (#518)fsd654qyl
Fixes #471 by implementing optional `defaultValueDescription` parameter which overrides the automatic description.
2023-10-02Clarification: List and Set can be comma-separatedMarkus KARG
2023-10-02Telling about Set in DocsMarkus KARG
2023-10-02modify convertValue() to fix issue 509 and add a test=
2023-10-01Performance: String.isEmpty() is faster than .equals()Markus KARG
2023-10-01Performance: String.isEmpty() is faster than .equals()Markus KARG
2023-10-01Performance: String.isEmpty() is faster than .equals()Markus KARG
2023-10-01Return an empty list when parsing an empty stringBill Farner
2023-09-30Fix bug in docAdrian Leonhard
Co-authored-by: Markus KARG <markus@headcrashing.eu>
2023-09-30Using secret GPG_PASSPHRASE for improved securityMarkus KARG
2023-09-30Fixed: Deprecation Warning about new Integer(int)Markus KARG
2023-09-30Version Bump: Gradle 8.3Markus KARG
2023-08-29Ignore default value for required parameter (#567)gwenn
* Ignore default value for required parameter Fix #566
2023-08-24Docs contain some examples of included conversionsMarkus KARG