X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/15e802971524cc061b72a1c5335140f517dd8f03..6c000544072fb0be012dafeea5761fa9e0744ee4:/src/main/java/org/asamk/signal/commands/BlockCommand.java diff --git a/src/main/java/org/asamk/signal/commands/BlockCommand.java b/src/main/java/org/asamk/signal/commands/BlockCommand.java index e62bb79a..29a1f3e5 100644 --- a/src/main/java/org/asamk/signal/commands/BlockCommand.java +++ b/src/main/java/org/asamk/signal/commands/BlockCommand.java @@ -22,7 +22,7 @@ public class BlockCommand implements LocalCommand { public static 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("-g", "--group").help("Group ID").nargs("*"); + subparser.addArgument("-g", "--group-id", "--group").help("Group ID").nargs("*"); } public BlockCommand(final OutputWriter outputWriter) { @@ -40,8 +40,8 @@ public class BlockCommand implements LocalCommand { } } - if (ns.getList("group") != null) { - for (var groupIdString : ns.getList("group")) { + if (ns.getList("group-id") != null) { + for (var groupIdString : ns.getList("group-id")) { try { var groupId = Util.decodeGroupId(groupIdString); m.setGroupBlocked(groupId, true);