package seedu.tasklist.logic.parser;

public class UndoneCommandParser {

}

@@ -35,42 +35,901 @@
 r;%0A%0A
-public class UndoneCommandParser %7B
+import static seedu.tasklist.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;%0A%0Aimport java.util.Optional;%0A%0Aimport seedu.tasklist.logic.commands.Command;%0Aimport seedu.tasklist.logic.commands.IncorrectCommand;%0Aimport seedu.tasklist.logic.commands.UndoneCommand;%0A%0A/**%0A * Parses input arguments and creates a UndoneCommand object%0A */%0A//@@Author A0143355J%0Apublic class UndoneCommandParser %7B%0A%0A    /**%0A     * Parses the given %7B@code String%7D of arguments in the context of the UndoneCommand%0A     * and returns an UndoneCommand object for execution.%0A     */%0A    public Command parse(String args) %7B%0A%0A        Optional%3CInteger%3E index = ParserUtil.parseIndex(args);%0A        if (!index.isPresent()) %7B%0A            return new IncorrectCommand(%0A                    String.format(MESSAGE_INVALID_COMMAND_FORMAT, UndoneCommand.MESSAGE_USAGE));%0A        %7D%0A%0A        return new UndoneCommand(index.get());%0A    %7D
 %0A%0A%7D%0A

Add variables and methods for UndoneCommandParser