mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
parent
92c1f16799
commit
be963ed49b
3 changed files with 33 additions and 0 deletions
|
@ -138,6 +138,22 @@ public class Main {
|
|||
return 3;
|
||||
}
|
||||
break;
|
||||
case "unregister":
|
||||
if (dBusConn != null) {
|
||||
System.err.println("unregister is not yet implemented via dbus");
|
||||
return 1;
|
||||
}
|
||||
if (!m.isRegistered()) {
|
||||
System.err.println("User is not registered.");
|
||||
return 1;
|
||||
}
|
||||
try {
|
||||
m.unregister();
|
||||
} catch (IOException e) {
|
||||
System.err.println("Unregister error: " + e.getMessage());
|
||||
return 3;
|
||||
}
|
||||
break;
|
||||
case "verify":
|
||||
if (dBusConn != null) {
|
||||
System.err.println("verify is not yet implemented via dbus");
|
||||
|
@ -679,6 +695,9 @@ public class Main {
|
|||
.help("The verification should be done over voice, not sms.")
|
||||
.action(Arguments.storeTrue());
|
||||
|
||||
Subparser parserUnregister = subparsers.addParser("unregister");
|
||||
parserUnregister.help("Unregister the current device from the signal server.");
|
||||
|
||||
Subparser parserVerify = subparsers.addParser("verify");
|
||||
parserVerify.addArgument("verificationCode")
|
||||
.help("The verification code you received via sms or voice call.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue