jcommander
jcommander copied to clipboard
Command line parsing framework for Java
Hi, I've got the following code: ```java @ParametersDelegate private StructuralVariantComparator svComparator = new StructuralVariantComparator(); ``` with: ```java public class StructuralVariantComparator implements BiPredicate { (....) ``` when I run my code...
Basically, if you have argument with _variable arity_ and hyphen inside the argument: "-argument1 foo - bar -argument2...", exception is thrown. Works fine if arity would be set to 3...
Processing of empty args with required parameters AND help=true for one of the declared parameters
I am not 100% sure if it is a desired scenario or not, but it is hard for me to agree with the way the empty list of parameters is...
Sounds like I've get a wrong indentation when doing this: ``` java @Parameter(names = { "--help"}, help = true, description = "Display help") private boolean help; @Parameter(names = { "--verbose",...
The JCommander class should provide APIs that make the @Parameters configurable at runtime, not just via annotations. A common use case might be to first initialize the parameters from object...
Rather than only allowing one unnamed (main) @Parameter attribute of type List, Is it possible to also support having multiple such attributes, which would be aggregated into one corresponding sequence...
There should be support for having String[], not just List, as the type of the list that captures main parameters.
Sometimes, when working with static fields, it would be most convenient to be able to pass a class (SomeClass.class) to JCommander instead of an instance. Sometimes, instances aren't even possible...
Since https://github.com/cbeust/jcommander/pull/533, it has apparently been impossible to use an @file to pass a single string value argument that contains spaces. I tried four different ways of doing it, and...
I keep bumping into example code that does not compile. :smiling_face_with_tear: I have the following problems: 1. Example classes should be either package private or public - for consistence https://jcommander.org/#_parameter_delegates...