jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Command line parsing framework for Java

Results 152 jcommander issues
Sort by recently updated
recently updated
newest added

# Description One cannot use the [`@`-syntax](https://jcommander.org/#_syntax) in conjunction with parameters that may contain a literal `@` at the beginning. ## Steps to reproduce: In this repository: https://github.com/c-kunz/jcommander-conflicting-at-syntax ```bash git...

I have the following parameter : ``` @Parameter(names = { "--roles"}, description = "List of roles separated by comma") private Set roles = new HashSet(Arrays.asList(Relationship.TypeEnum.values())); ``` And when I pass...

Hello there, great lib ! 😄 So, it can be cool to have a default validation (like a fallback). Is this way, we are able to globalize the validation using...

fixed #471 I add defaultValueDiscription in Parameter.java (default conficts to the keyword of java). When getDefault() is called, it will check if defaultValueDiscription is a empty string. If not, getDefault()...

fixed #486 1. @Subparameter has accessibility problem. I solve it by setting the accessibility of field to true and then set to origin in ParameterDescription.java 2. @Subparameter seems only can...

bug

When using complex parameter types, often the defaults printed by `usage()` are unreadable. For example, the class of the parameter does not overwrite `toString()` so it prints just a hash...

Would it be possible to add 'category' to @Parameter, so that when printing usage, we can group similar flags together. Thanks. This is a great command line parsing library.

Sophisticated CLI tools allow the provision of multiple default sources, e. g. in a first step these tools will check environment variables, and if nothing found, they will check property...

Currently required=true enforces the explicit provision of a parameter at the command line. In fact, it would be very useful, is a default would be considered, i. e. the error...

There are at least 2 problems with @SubParameter 1. It can set only `public` fields of a class 2. It does not convert data types Example code: ``` public class...

bug