Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-27 | Fixed: A default fulfils requirement, but does not count as assignment.upstream-master | Markus KARG | |
2024-04-11 | Fix 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-24 | Asciidoctor formatting | Markus KARG | |
2023-12-22 | 439 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-22 | Updated index.html | Markus KARG | |
2023-12-21 | Order 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-21 | Asserting that double quotes are not removed. | Jan de Gorter | |
2023-12-17 | Simplified code / Fixed typo | Markus KARG | |
2023-12-17 | Fix #379 | XxxXxxXxx233 | |
2023-12-17 | Replace arrayOf with array literals in Kotlin sample | Andrey Mischenko | |
2023-12-17 | Simplified test | Markus KARG | |
2023-12-17 | Keep original exception thrown by the parameter setter method | Sergii 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-17 | Fixes #557: Now validates BEFORE conversion | Markus KARG | |
2023-10-21 | Fixed: Broken link to TestNG example | Markus KARG | |
2023-10-21 | Creating apidocs using JavaDoc when documentation is created | Markus KARG | |
2023-10-12 | Allow 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-08 | Fixed: Default value of primitive type must not satisfy required = true | Markus KARG | |
2023-10-08 | Simplified code: No need for public class | Markus KARG | |
2023-10-08 | No ParameterException if a default value assigned for required params | Hiroshi 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-07 | Fixed documentation: Contributor fixed inidex.html instead of index.adoc | Markus KARG | |
2023-10-07 | Example for @Parameter on setter method | T Naeff | |
Example for @Parameter on setter method | |||
2023-10-07 | Fixed docs formatting | Markus KARG | |
2023-10-07 | Mentioning Charset converter in docs | Markus KARG | |
2023-10-07 | Improved ByteOrderConverterTest: Removing unused Exception | Markus KARG | |
2023-10-07 | Adds a CharsetConverter. | Gary Gregory | |
2023-10-07 | Mentioning ByteOrder converter in docs | Markus KARG | |
2023-10-07 | Improved ByteOrderConverterTest: Proofs that parameter may be in mixed case | Markus KARG | |
2023-10-07 | Adds a ByteOrderConverter. | Gary Gregory | |
2023-10-07 | Improved VariableArityTest: Proofs that unknown options are safely passed ↵ | Markus KARG | |
through | |||
2023-10-04 | Test for dontShowNullForMissingCommandDescription | Markus KARG | |
2023-10-04 | Fix usage() for missing description on commands | Joe 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-02 | Moved description of defaultValueDescription to usage chapter | Markus KARG | |
2023-10-02 | Docs for @Parameter(defaultValueDescription) | Markus KARG | |
2023-10-02 | Fixed backwards compatiblity fail: ParameterDescription.getDefault() must ↵ | Markus KARG | |
not produce different result as existing code relies on current behavior | |||
2023-10-02 | Simplified Code | Markus KARG | |
2023-10-02 | Fixed test fail: NullPointerException in ParameterDescription line 173 | Markus KARG | |
2023-10-02 | Fixed #471 @Param(default = ) (#518) | fsd654qyl | |
Fixes #471 by implementing optional `defaultValueDescription` parameter which overrides the automatic description. | |||
2023-10-02 | Clarification: List and Set can be comma-separated | Markus KARG | |
2023-10-02 | Telling about Set in Docs | Markus KARG | |
2023-10-02 | modify convertValue() to fix issue 509 and add a test | = | |
2023-10-01 | Performance: String.isEmpty() is faster than .equals() | Markus KARG | |
2023-10-01 | Performance: String.isEmpty() is faster than .equals() | Markus KARG | |
2023-10-01 | Performance: String.isEmpty() is faster than .equals() | Markus KARG | |
2023-10-01 | Return an empty list when parsing an empty string | Bill Farner | |
2023-09-30 | Fix bug in doc | Adrian Leonhard | |
Co-authored-by: Markus KARG <markus@headcrashing.eu> | |||
2023-09-30 | Using secret GPG_PASSPHRASE for improved security | Markus KARG | |
2023-09-30 | Fixed: Deprecation Warning about new Integer(int) | Markus KARG | |
2023-09-30 | Version Bump: Gradle 8.3 | Markus KARG | |
2023-08-29 | Ignore default value for required parameter (#567) | gwenn | |
* Ignore default value for required parameter Fix #566 | |||
2023-08-24 | Docs contain some examples of included conversions | Markus KARG | |