Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update delete feature according to feedback from PR #103

Merged
merged 4 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import seedu.address.model.module.Module;
import seedu.address.model.module.ModuleCode;


/**
* Deletes a person identified using it's displayed index from the address book.
*/
Expand All @@ -24,7 +23,7 @@ public class DeleteCommand extends Command {
+ "Example: " + COMMAND_WORD + " " + PREFIX_CODE + "CS2103T ";

public static final String MESSAGE_DELETE_MODULE_SUCCESS = "Deleted Module: %1$s";
public static final String MESSAGE_NOT_FOUND_MODULE = "This module is not found and has not been added.";
public static final String MESSAGE_NOT_FOUND_MODULE = "This module is not found and has not been deleted.";

private final ModuleCode toDelete;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class DeleteCommandParser implements Parser<DeleteCommand> {
*/
public DeleteCommand parse(String args) throws ParseException {
try {
ModuleCode code = ParserUtil.parseCode(args);
ModuleCode code = ParserUtil.parseModuleCode(args);
return new DeleteCommand(code);

} catch (ParseException pe) {
Expand Down
Loading