picocli
picocli copied to clipboard
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps ca...
The test provided shows that, under certain conditions, incorrect clearing of command option values occurs. `test2` fails because after `test1` execution Picocli start providing `--option option` as default value for...
The following test fails: ```java @Test public void testReuseBothCommandLineAndUserObjectWithArgGroup() { Command userObject = new Command(); CommandLine cmdLine = new CommandLine(userObject); cmdLine.execute("--group", "group", "--option", "option"); cmdLine.execute(); assertNull(userObject.option, "Expected option to be...
For options defined in an ArgGroup, a call to OptionSpec.getValue() will fail due to a NullPointerException if none of the options contained in the ArgGroup have been specified on the...
Fixes #1754 - Both positional params and option candidates are now stored in the autocomplete script as an array. - By setting `IFS=$'\n'` for those scenarios, each array entry is...
When an option provides a `completionProvider` that list strings with spaces, the autocomplete doesn't honor the completion provider, but instead splits all options on its own. For instance, given the...
Given a command with arity > 1 (and not a file / path type), autcomplete will only work for the first value. Given the code: ```java @Command(mixinStandardHelpOptions = true) public...
I'm not getting the exclusivity groups for inherited options. I've got a very simple use case: I want a user to indicate `--quiet` or `--verbose`, both optional, but mutually exclusive....
I a using `mixinStandardHelpOptions` with a command and subcommands. This is really convenient. The issue I have is that this mixin adds a version option with default names defined as...
Discussion in #1718 showed that it may be useful if the API for each xxSpec class (CommandSpec, OptionSpec, ArgGroupSpec, etc) had a `getAnnotatedElement` method that would return the [`IAnnotatedElement`](https://picocli.info/apidocs-all/info.picocli/picocli/CommandLine.Model.IAnnotatedElement.html) for...
I have a CLI that takes a path as a parameter, e.g. `foo do C:\temp`. I just decided to allow multiple files/directories, so I changed the parameter to: ``` @Parameters(paramLabel...