- final boolean isRemove = ns.getBoolean("remove");
- final var targetAuthor = ns.getString("target_author");
- final long targetTimestamp = ns.getLong("target_timestamp");
-
- final var writer = new PlainTextWriterImpl(System.out);
-
- final Pair<Long, List<SendMessageResult>> results;
-
- GroupId groupId = null;
- if (groupId != null) {
- try {
- groupId = Util.decodeGroupId(groupIdString);
- } catch (GroupIdFormatException e) {
- throw new UserErrorException("Invalid group id:" + e.getMessage());
- }
- }
+ final var isRemove = Boolean.TRUE.equals(ns.getBoolean("remove"));
+ final var targetAuthor = ns.getString("target-author");
+ final var targetTimestamp = ns.getLong("target-timestamp");