mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +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
|
@ -25,7 +25,7 @@ public class BlockCommand implements JsonRpcLocalCommand {
|
|||
@Override
|
||||
public void attachToSubparser(final Subparser subparser) {
|
||||
subparser.help("Block the given contacts or groups (no messages will be received)");
|
||||
subparser.addArgument("contact").help("Contact number").nargs("*");
|
||||
subparser.addArgument("recipient").help("Contact number").nargs("*");
|
||||
subparser.addArgument("-g", "--group-id", "--group").help("Group ID").nargs("*");
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class BlockCommand implements JsonRpcLocalCommand {
|
|||
public void handleCommand(
|
||||
final Namespace ns, final Manager m, final OutputWriter outputWriter
|
||||
) throws CommandException {
|
||||
final var contacts = ns.<String>getList("contact");
|
||||
final var contacts = ns.<String>getList("recipient");
|
||||
for (var contact : CommandUtil.getSingleRecipientIdentifiers(contacts, m.getUsername())) {
|
||||
try {
|
||||
m.setContactBlocked(contact, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue