Change meaning of -v flag from --version to --verbose

This commit is contained in:
AsamK 2022-06-11 18:23:33 +02:00
parent 08dc65350f
commit 1ea4309a2a
3 changed files with 5 additions and 5 deletions

View file

@ -64,8 +64,8 @@ public class App {
.description("Commandline interface for Signal.")
.version(BaseConfig.PROJECT_NAME + " " + BaseConfig.PROJECT_VERSION);
parser.addArgument("-v", "--version").help("Show package version.").action(Arguments.version());
parser.addArgument("--verbose")
parser.addArgument("--version").help("Show package version.").action(Arguments.version());
parser.addArgument("-v", "--verbose")
.help("Raise log level and include lib signal logs. Specify multiple times for even more logs.")
.action(Arguments.count());
parser.addArgument("--log-file")

View file

@ -80,7 +80,7 @@ public class Main {
.includeArgumentNamesAsKeysInResult(true)
.build()
.defaultHelp(false);
parser.addArgument("--verbose").action(Arguments.count());
parser.addArgument("-v", "--verbose").action(Arguments.count());
parser.addArgument("--log-file").type(File.class);
try {