]> nmode's Git Repositories - signal-cli/commitdiff
Update README
authorAsamK <asamk@gmx.de>
Mon, 6 Jul 2015 09:17:47 +0000 (11:17 +0200)
committerAsamK <asamk@gmx.de>
Mon, 6 Jul 2015 09:17:47 +0000 (11:17 +0200)
README.md
src/main/java/cli/Main.java

index 897b9fd165631138c723877877e0c3e037e5503d..c2174be17f10317f175ee8f8550eb105ceab31ce 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # textsecure-cli
 
-textsecure-cli is a commandline interface for [libtextsecure-java](https://github.com/WhisperSystems/libtextsecure-java). It supports registering, verifying, sending and receiving messages. However receiving messages currently doesn't work, because libtextsecure-java [does not yet support registering for the websocket support](https://github.com/WhisperSystems/libtextsecure-java/pull/5). For registering you need a phone number where you can receive SMS.
+textsecure-cli is a commandline interface for [libtextsecure-java](https://github.com/WhisperSystems/libtextsecure-java). It supports registering, verifying, sending and receiving messages. However receiving messages currently doesn't work, because libtextsecure-java [does not yet support registering for the websocket support](https://github.com/WhisperSystems/libtextsecure-java/pull/5). For registering you need a phone number where you can receive SMS or incoming calls.
 It is primarily intented to be used on servers to notify admins of important events.
 
 ## Usage
@@ -11,6 +11,10 @@ usage: textsecure-cli [-h] -u USERNAME {register,verify,send,receive} ...
 
         textsecure-cli -u USERNAME register
 
+* Register a number with voice verification
+
+        textsecure-cli -u USERNAME register -v
+
 * Verify the number using the code received via SMS
 
         textsecure-cli -u USERNAME verify CODE
index 92e1b46c42095f6ef8b3541a009b8986ebd0ed77..9a915dee0fe769688de96e11cae7bd6c4d546650 100644 (file)
@@ -47,8 +47,8 @@ public class Main {
                 .help("additional help");
         Subparser parserRegister = subparsers.addParser("register");
         parserRegister.addArgument("-v", "--voice")
-                    .help("The verification should be done over voice, not sms.")
-                    .action(Arguments.storeTrue());
+                .help("The verification should be done over voice, not sms.")
+                .action(Arguments.storeTrue());
         Subparser parserVerify = subparsers.addParser("verify");
         parserVerify.addArgument("verificationCode")
                 .help("The verification code you received via sms or voice call.");