commit 512edd81a244f1a16723d6e63b9503b43121ee1d
parent 37534eb6923e4e5dde82ce773c1cc0d858321362
Author: Christoph Egger <christoph@christoph-egger.org>
Date: Wed, 18 Jul 2018 16:29:11 +0200
Make error for missing arguments actually usefull (#191)
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/eu/siacs/ComplianceTester.java b/src/main/java/eu/siacs/ComplianceTester.java
@@ -17,13 +17,15 @@ public class ComplianceTester {
public static void main(String[] args) {
- Jid jid = Jid.of(args[0]);
String password;
if (args.length < 1 || args.length > 2) {
System.err.println("java -jar ComplianceTester.jar username@domain.tld [password]");
System.exit(1);
return;
- } else if (args.length == 2) {
+ }
+ Jid jid = Jid.of(args[0]);
+
+ if (args.length == 2) {
password = args[1];
AccountStore.storePassword(jid, password);
} else {