Closed olivercheok20 closed 5 years ago
Hi Oliver, I tested to check if everything works fine. Everything is okay except:
When you type commands like addtag 1
or addpolicytag 1
, the command executes without giving an error, even when it should give an exception that no tags are provided (along with a correct format for the command).
You can just add this to your addpolicytagcommandparser: if (!arePrefixesPresent(argMultimap, PREFIX_TAG) || !argMultimap.getPreamble().isEmpty()) { throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddPolicyTagCommand.MESSAGE_USAGE)); }
Can use
PersonBuilder
andPolicyBuilder
to copy people/policies!