Update argparse4j

This commit is contained in:
AsamK 2017-12-29 15:01:21 +01:00
parent e63e6e1fa2
commit d5fb37a416
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@ repositories {
dependencies { dependencies {
compile 'com.github.turasa:signal-service-java:2.6.12_unofficial_1' compile 'com.github.turasa:signal-service-java:2.6.12_unofficial_1'
compile 'org.bouncycastle:bcprov-jdk15on:1.55' compile 'org.bouncycastle:bcprov-jdk15on:1.55'
compile 'net.sourceforge.argparse4j:argparse4j:0.7.0' compile 'net.sourceforge.argparse4j:argparse4j:0.8.1'
compile 'org.freedesktop.dbus:dbus-java:2.7.0' compile 'org.freedesktop.dbus:dbus-java:2.7.0'
} }

View file

@ -720,7 +720,8 @@ public class Main {
} }
private static Namespace parseArgs(String[] args) { private static Namespace parseArgs(String[] args) {
ArgumentParser parser = ArgumentParsers.newArgumentParser("signal-cli") ArgumentParser parser = ArgumentParsers.newFor("signal-cli")
.build()
.defaultHelp(true) .defaultHelp(true)
.description("Commandline interface for Signal.") .description("Commandline interface for Signal.")
.version(Manager.PROJECT_NAME + " " + Manager.PROJECT_VERSION); .version(Manager.PROJECT_NAME + " " + Manager.PROJECT_VERSION);