Update help texts

This commit is contained in:
vanitasvitae 2017-08-17 22:48:51 +02:00
parent abcaf5e28f
commit 7ade7667d0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 7 additions and 7 deletions

View file

@ -72,9 +72,9 @@ public class Client {
public void login() throws InterruptedException, IOException, SmackException, XMPPException, CorruptedOmemoKeyException {
((XMPPTCPConnection) connection).connect().login();
connection.setReplyTimeout(30000);
OmemoManager omemoManager = OmemoManager.getInstanceFor(connection);
omemoManager.initialize();
connection.setReplyTimeout(10000);
JetManager.getInstanceFor(connection).registerEncryptionMethod(OmemoManager.getInstanceFor(connection));
JetManager.registerEncryptionMethodProvider(OmemoConstants.OMEMO_NAMESPACE_V_AXOLOTL, new OmemoVAxolotlProvider());
}

View file

@ -41,12 +41,12 @@ public class Main {
private static Options prepareOptions() {
Options options = new Options();
Option username = Option.builder("u").longOpt("username").required().argName("user@server.tld").hasArg().desc("Barejid of the XMPP account").build();
Option password = Option.builder("p").longOpt("password").required().argName("swordfish").hasArg().desc("Password of the XMPP account").build();
Option debug = Option.builder("d").longOpt("debug").desc("Start in debug mode").build();
Option directory = Option.builder("D").longOpt("directory").hasArg().required().desc("Directory to sync").build();
Option master = Option.builder("m").longOpt("master").desc("Start in master mode").build();
Option help = Option.builder("h").longOpt("help").desc("Display this help text").build();
Option username = Option.builder("u").longOpt("username").required().argName("user@server.tld").hasArg().desc("Barejid of the XMPP account.").build();
Option password = Option.builder("p").longOpt("password").required().argName("swordfish").hasArg().desc("Password of the XMPP account.").build();
Option debug = Option.builder("d").longOpt("debug").desc("Print debug messages to the console.").build();
Option directory = Option.builder("D").longOpt("directory").hasArg().required().desc("Directory which will be synced.").build();
Option master = Option.builder("m").longOpt("master").desc("Start in master mode. When this flag is missing, the client will be started in slave mode.").build();
Option help = Option.builder("h").longOpt("help").desc("Display this help text.").build();
options.addOption(username);
options.addOption(password);
options.addOption(debug);