AY1920S1-CS2103-F09-4 / main

Insurelytics
https://ay1920s1-cs2103-f09-4.github.io/main/
MIT License
1 stars 5 forks source link

V1.2 #95

Closed olivercheok20 closed 5 years ago

chaitanyabaranwal commented 5 years ago

Can use PersonBuilder and PolicyBuilder to copy people/policies!

chaitanyabaranwal commented 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).

chowyiyin commented 5 years ago

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)); }