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

The command parameters are nicely sorted, but not the commands themselves. Sorting makes the output consistent across runs and easier to search for specific commands.

The previous interface for ´IDefaultProvider´ assumes that defaults have been represented as a String. Although this is ok for most cases, with Lists the String approach becomes harder to guarantee...

It seems currently impossible to have a custom `IUsageFormatter` that propagates to commands: Here is the current stable version of the canonical `addCommand` (v1.78). ```java public void addCommand(String name, Object...

I've looked at the documentation, and maybe I'm missing something, but I can't seem to find a way to create a variable verbosity parameter where the level of verbosity is...

Usage of output parameters (i.e. sending an instance of the "Parameter descriptor" class which is modified in place by JCommander.parse(...)) has proven to be susceptible to programming errors. It's also...

When I try to upgrade jcommander from 1.7.2 to 1.7.8. The following code breaks. ``` public class Main { static public void main(String... args) throws Exception { Main main =...

Hi, please make it possible to customize the default enum values in the help. Type names are not always sufficient. Example of how I modified it. You can use it...

Steps to reproduce: ``` public class DescriptionIssue { static class Command { @Parameter(names = "-t") private String test; } public static void main(String[] args) { JCommander jCommander = JCommander.newBuilder().addCommand("testCommand", new...

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...

#153 Is not fixed, for example: @Parameter(names = {"-v", "--value"}, description = "JSON value to set the attribute to", required = true) String jsonValue; From bash: `java -jar test.jar --value...