Update help texts
This commit is contained in:
parent
abcaf5e28f
commit
7ade7667d0
2 changed files with 7 additions and 7 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue