From df8580eefbc064c8911a089dd3e9620c10f936d2 Mon Sep 17 00:00:00 2001 From: tiif Date: Fri, 3 Nov 2023 12:33:51 +0800 Subject: [PATCH] Update user guide and edit command usage string --- docs/UserGuide.md | 4 ++-- src/main/java/seedu/address/logic/commands/EditCommand.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index fe0a8eb5676..983f84f2ff6 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -282,7 +282,7 @@ Example: deletemeeting 1 ### Edit - What it does: Edit the details of a lead or client. -- Command format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]...` +- Command format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [k/KEY_MILESTONE] [t/TAG]...` - Example usage: `edit 1 n/John Doe p/98765432`
@@ -325,7 +325,7 @@ Edited Person: ``` Invalid command format! edit: Edits the details of the person identified by the index number used in the displayed person list. Existing values will be overwritten by the input values. -Parameters: INDEX (must be a positive integer) [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [m/MEETING_TIME] [t/TAG]... +Parameters: INDEX (must be a positive integer) [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [k/KEY_MILESTONE] [m/MEETING_TIME] [t/TAG]... Example: edit 1 p/91234567 e/johndoe@example.com ``` diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index cd7eadde35c..751782f4265 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -3,6 +3,7 @@ import static java.util.Objects.requireNonNull; import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; +import static seedu.address.logic.parser.CliSyntax.PREFIX_KEY_MILESTONE; import static seedu.address.logic.parser.CliSyntax.PREFIX_MEETING_TIME; import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; @@ -49,6 +50,7 @@ public class EditCommand extends Command { + "[" + PREFIX_PHONE + "PHONE] " + "[" + PREFIX_EMAIL + "EMAIL] " + "[" + PREFIX_ADDRESS + "ADDRESS] " + + "[" + PREFIX_KEY_MILESTONE + "KEY_MILESTONE] " + "[" + PREFIX_MEETING_TIME + "MEETING_TIME] " + "[" + PREFIX_TAG + "TAG]...\n" + "Example: " + COMMAND_WORD + " 1 "