Skip to content

Commit

Permalink
Update edit message usage
Browse files Browse the repository at this point in the history
  • Loading branch information
McNaBry committed Oct 27, 2023
1 parent f01e509 commit 14647e6
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/main/java/seedu/address/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,42 @@ public class EditCommand extends Command {
AutocompleteDataSet.anyNumberOf(FLAG_TAG)
);

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the details of the contact identified "
+ "by the index number used in the displayed contact list. "
+ "Existing values will be overwritten by the input values.\n"
+ "Parameters: INDEX (must be a positive integer) "
public static final String MESSAGE_ORGANIZATION_USAGE = "Edits an organization.\n"
+ "Parameters: INDEX/ID "
+ "[" + FLAG_NAME + " NAME] "
+ "[" + FLAG_ID + " ID] "
+ "[" + FLAG_PHONE + " PHONE] "
+ "[" + FLAG_EMAIL + " EMAIL] "
+ "[" + FLAG_URL + " URL] "
+ "[" + FLAG_ADDRESS + " ADDRESS] "
+ "[" + FLAG_STATUS + " STATUS] "
+ "[" + FLAG_POSITION + " POSITION] "
+ "[" + FLAG_TAG + " TAG]...\n"
+ "Example: " + COMMAND_WORD + " 1 "
+ FLAG_PHONE + " 91234567 "
+ FLAG_EMAIL + " [email protected]";
+ FLAG_STATUS + " Applied";

public static final String MESSAGE_RECRUITER_USAGE = "Edits a recruiter.\n"
+ "Parameters: INDEX/ID "
+ "[" + FLAG_NAME + " NAME] "
+ "[" + FLAG_ID + " ID] "
+ "[" + FLAG_PHONE + " PHONE] "
+ "[" + FLAG_EMAIL + " EMAIL] "
+ "[" + FLAG_URL + " URL] "
+ "[" + FLAG_ADDRESS + " ADDRESS] "
+ "[" + FLAG_ORGANIZATION_ID + " OID] "
+ "[" + FLAG_TAG + " TAG]...\n"
+ "Example: " + COMMAND_WORD + " 1 "
+ FLAG_PHONE + " 91234567 "
+ FLAG_EMAIL + " [email protected]";

public static final String MESSAGE_USAGE = COMMAND_WORD
+ ": Edits the details of the contact of the class type Organization or Recruiter,"
+ " identified by its index in the displayed contact list or its id."
+ " Note that existing values will be overwritten by the input values."
+ " The input format varies depending on the class:\n\n"
+ MESSAGE_ORGANIZATION_USAGE + "\n\n"
+ MESSAGE_RECRUITER_USAGE;

public static final String MESSAGE_EDIT_CONTACT_SUCCESS = "Edited Contact: %1$s";
public static final String MESSAGE_NOT_EDITED = "At least one field to edit must be provided.";
Expand Down

0 comments on commit 14647e6

Please sign in to comment.