-
Notifications
You must be signed in to change notification settings - Fork 440
Open
Labels
status: help-wanted 🆘theme: usagehelpAn issue or change related to the usage help messageAn issue or change related to the usage help messagetype: doc 📘type: enhancement ✨
Milestone
Description
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 -V, --version
whereas I would like to get -v, --version
.
Looking at Picoli implementation, I see there is a placeholder defined in CommandLine.AutoHelpMixin:
@Option(names = {"${picocli.version.name.0:--V}", "${picocli.version.name.1:---version}"}, versionHelp = true, descriptionKey = "mixinStandardHelpOptions.version", description = "Print version information and exit.")
private boolean versionRequested;
Setting System.setProperty("picocli.version.name.0", "-v");
in my app main is working but there seems to be no mention about Picocli placeholders in the docs. Is this the recommended way to proceed?
Metadata
Metadata
Assignees
Labels
status: help-wanted 🆘theme: usagehelpAn issue or change related to the usage help messageAn issue or change related to the usage help messagetype: doc 📘type: enhancement ✨