-
Notifications
You must be signed in to change notification settings - Fork 446
Closed
Labels
theme: parserAn issue or change related to the parserAn issue or change related to the parsertype: enhancement ✨
Milestone
Description
Hi,
I'm preparing some demo project for picocli and stumbled over some interesting, currently unsupported case.
Some shell commands, like cat accept - as a positional parameter
cat -which means cat will read it's input from STDIN instead of a file.
But it seems picocli currently doesn't support such a case?
When I call
@Command(name = "mst-cli", mixinStandardHelpOptions = true)
public class Cli implements Runnable {
@Parameters(index = "0")
private String json;
@Parameters(index = "1")
private String template;
// more code
}with the following parameters
- ~/hello.mustache
picocli complains that the second parameter isn't set :/.
But
~/data.json ~/hello.mustache
works.
Metadata
Metadata
Assignees
Labels
theme: parserAn issue or change related to the parserAn issue or change related to the parsertype: enhancement ✨