- public void handleCommand(final Namespace ns, final Manager m) throws CommandException {
- final var writer = (PlainTextWriterImpl) outputWriter;
-
- final GroupId groupId;
- try {
- groupId = Util.decodeGroupId(ns.getString("group"));
- } catch (GroupIdFormatException e) {
- throw new UserErrorException("Invalid group id: " + e.getMessage());
- }
+ public void handleCommand(
+ final Namespace ns, final Manager m, final OutputWriter outputWriter
+ ) throws CommandException {
+ final var groupId = CommandUtil.getGroupId(ns.getString("group-id"));