jcommander
jcommander copied to clipboard
Command line parsing framework for Java
fixes issue #439 When looking the names loop wasn't duplicated in any validating fashion. So adding a handlesArg method wouldn't improve anything. Extracting a method might have been nice, but...
If you have a parameter called -abc and a dynamic parameter -ab. -abc will be expanded to "-ab" "c" And behold you'll get an exception since "c" is not a...
Hi! We are enjoying Jcommander in our projects, however we ran across a new thing with Java 9 recently. When running jcommander with Java 9, the following warning message is...
In the following code fragment the first and the third block works as expected, where as the 3rd throws an exception. The output is attached behind the source code. `class...
Hello, I am trying to run the sample code but the addObject command in JCommander.newBuilder() .addObject(args) .build() .parse(argv); keeps telling me "addObject(java.lang.Object) in com.beust.jcommander.JCommander.Builder is defined in an inaccessible class...
Kotlin 1.2.20 supports array literals in annotations and it's recommended style. This change updates docs.
The idea is to support this pattern: ```java JCommander.Builder builder = JCommander.newBuilder() addCommands(commands); JCommander jc = builder.build(); ``` Instead of the more clumsy: ```java JCommander.Builder builder = JCommander.newBuilder(); commands.forEach(builder::addCommand); JCommander...
Rather than returning a list of size 1 containing an empty string, split an empty string into an empty list. This could be done application-side with a custom `IParameterSplitter`, but...
If I'm not wrong in https://github.com/cbeust/jcommander/blob/master/src/main/java/com/beust/jcommander/JCommander.java#L652 ``` if (descriptions.containsKey(name)) { ``` description is a` Map and it's compared to a `String`. the implementations of IKey.equals in StringKey or ProgramName don't...