Skip to content

Commit

Permalink
Merge pull request #131 from breezetall/priority-bug
Browse files Browse the repository at this point in the history
Fix priority bug
  • Loading branch information
Kaya3842 authored Apr 11, 2024
2 parents b2fa82c + 0a99305 commit 4b27640
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public AddTaskCommand parse(String args) throws ParseException {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddTaskCommand.MESSAGE_USAGE));
}

argMultimap.verifyNoDuplicatePrefixesFor(PREFIX_NAME, PREFIX_TASK_DESCRIPTION, PREFIX_TASK_DEADLINE);
argMultimap.verifyNoDuplicatePrefixesFor(
PREFIX_NAME, PREFIX_TASK_DESCRIPTION, PREFIX_TASK_PRIORITY, PREFIX_TASK_DEADLINE);

TaskName name = ParserUtil.parseTaskName(argMultimap.getValue(PREFIX_NAME).get());
TaskDescription description = ParserUtil.parseTaskDescription(
Expand Down

0 comments on commit 4b27640

Please sign in to comment.