mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Align cli param names for recipient
This commit is contained in:
parent
ca52c01031
commit
95792be9bc
6 changed files with 17 additions and 15 deletions
|
@ -24,7 +24,7 @@ public class TrustCommand implements JsonRpcLocalCommand {
|
|||
@Override
|
||||
public void attachToSubparser(final Subparser subparser) {
|
||||
subparser.help("Set the trust level of a given number.");
|
||||
subparser.addArgument("number").help("Specify the phone number, for which to set the trust.").required(true);
|
||||
subparser.addArgument("recipient").help("Specify the phone number, for which to set the trust.").required(true);
|
||||
var mutTrust = subparser.addMutuallyExclusiveGroup();
|
||||
mutTrust.addArgument("-a", "--trust-all-known-keys")
|
||||
.help("Trust all known keys of this user, only use this for testing.")
|
||||
|
@ -37,7 +37,7 @@ public class TrustCommand implements JsonRpcLocalCommand {
|
|||
public void handleCommand(
|
||||
final Namespace ns, final Manager m, final OutputWriter outputWriter
|
||||
) throws CommandException {
|
||||
var recipentString = ns.getString("number");
|
||||
var recipentString = ns.getString("recipient");
|
||||
var recipient = CommandUtil.getSingleRecipientIdentifier(recipentString, m.getUsername());
|
||||
if (ns.getBoolean("trust-all-known-keys")) {
|
||||
boolean res = m.trustIdentityAllKeys(recipient);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue