mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Update argparse4j
This commit is contained in:
parent
06e9f8ba64
commit
8e8eed7b06
10 changed files with 21 additions and 18 deletions
|
@ -28,7 +28,7 @@ public class TrustCommand implements LocalCommand {
|
|||
@Override
|
||||
public void handleCommand(final Namespace ns, final Manager m) throws CommandException {
|
||||
var number = ns.getString("number");
|
||||
if (ns.getBoolean("trust_all_known_keys")) {
|
||||
if (ns.getBoolean("trust-all-known-keys")) {
|
||||
boolean res;
|
||||
try {
|
||||
res = m.trustIdentityAllKeys(number);
|
||||
|
@ -39,7 +39,7 @@ public class TrustCommand implements LocalCommand {
|
|||
throw new UserErrorException("Failed to set the trust for this number, make sure the number is correct.");
|
||||
}
|
||||
} else {
|
||||
var safetyNumber = ns.getString("verified_safety_number");
|
||||
var safetyNumber = ns.getString("verified-safety-number");
|
||||
if (safetyNumber != null) {
|
||||
safetyNumber = safetyNumber.replaceAll(" ", "");
|
||||
if (safetyNumber.length() == 66) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue