forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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."; | ||
|