//@@evanyeung A0163744B
package seedu.task.logic.parser;

import static seedu.task.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_COMPLETE;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_INCOMPLETE;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_ADDED;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_DUE;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_START;
import static seedu.task.logic.parser.CliSyntax.LIST_COMMAND_END;

import seedu.task.logic.commands.Command;
import seedu.task.logic.commands.IncorrectCommand;
import seedu.task.logic.commands.ListCommand;
import seedu.task.logic.commands.ListCommand.ListCommandOption;

public class ListCommandParser {
    private static final String EMPTY_STRING = "";
    private ListCommandOption commandOption;

    /**
     * Parses the given {@code String} of arguments in the context of the ListCommand
     * and returns an ListCommand object for execution.
     */
    public Command parse(String args) {
        switch(args.trim()) {
        case EMPTY_STRING:
            commandOption = ListCommandOption.ALL;
            break;
        case LIST_COMMAND_COMPLETE:
            commandOption = ListCommandOption.COMPLETE;
            break;
        case LIST_COMMAND_INCOMPLETE:
            commandOption = ListCommandOption.INCOMPLETE;
            break;
        case LIST_COMMAND_ADDED:
            commandOption = ListCommandOption.ID;
            break;
        case LIST_COMMAND_DUE:
            commandOption = ListCommandOption.DUE;
            break;
        case LIST_COMMAND_START:
            commandOption = ListCommandOption.START;
            break;
        case LIST_COMMAND_END:
            commandOption = ListCommandOption.END;
            break;
        default:
            return new IncorrectCommand(String.format(MESSAGE_INVALID_COMMAND_FORMAT, ListCommand.MESSAGE_USAGE));
        }

        return new ListCommand(commandOption);
    }
}

@@ -191,24 +191,21 @@
 COMMAND_
-COMPLETE
+ADDED
 ;%0Aimport
@@ -251,34 +251,32 @@
 ax.LIST_COMMAND_
-IN
 COMPLETE;%0Aimport
@@ -322,37 +322,35 @@
 ax.LIST_COMMAND_
-ADDED
+DUE
 ;%0Aimport static 
@@ -388,35 +388,35 @@
 ax.LIST_COMMAND_
-DUE
+END
 ;%0Aimport static 
@@ -462,21 +462,26 @@
 COMMAND_
-START
+INCOMPLETE
 ;%0Aimport
@@ -535,19 +535,21 @@
 COMMAND_
-END
+START
 ;%0A%0Aimpor

Fix checkstyle