Skip to content

Commit

Permalink
Merge pull request #335 from AY2223S2-CS2103-F11-1/fix-minor-bug
Browse files Browse the repository at this point in the history
Add example
  • Loading branch information
ARPspoofing authored Apr 10, 2023
2 parents 9b9440c + 6079c74 commit 0efbaa0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class AddConsultationCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a consultation to the address book. "
+ "Parameters: "
+ PREFIX_CONSULTATION + "CONSULTATION_NAME " + "[-date dd/MM/yyyy HH:mm] \n"
+ "Restrictions: Name has a maximum of 20 characters \n"
+ "Restrictions: Name has a maximum of 20 characters, and dates cannot clash \n"
+ "Example: " + COMMAND_WORD + " Consultation/consultEmily -date 10/10/2026 10:00";

public static final String MESSAGE_SUCCESS = "New consultation added: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class AddLabCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a lab to the address book. "
+ "Parameters: "
+ PREFIX_LAB + "LAB_NAME " + "[-date dd/MM/yyyy HH:mm] \n"
+ "Restrictions: Name has a maximum of 20 characters \n"
+ "Restrictions: Name has a maximum of 20 characters, and dates cannot clash \n"
+ "Example: " + COMMAND_WORD + " Lab/TreeMap -date 10/10/2025 10:00";

public static final String MESSAGE_SUCCESS = "New lab added: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class AddTutorialCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a tutorial to the address book. "
+ "Parameters: "
+ PREFIX_TUTORIAL + "TUTORIAL_NAME " + "[-date dd/MM/yyyy HH:mm] \n"
+ "Restrictions: Name has a maximum of 20 characters \n"
+ "Restrictions: Name has a maximum of 20 characters, and dates cannot clash \n"
+ "Example: " + COMMAND_WORD + " Tutorial/Dijkstra -date 10/10/2024 10:00";

public static final String MESSAGE_SUCCESS = "New tutorial added: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class EditEventCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the details of the event identified "
+ "by the index number (1-based) used in the displayed event list. \n"
+ "Parameters: editEvent EVENT_INDEX EVENT_TYPE/EVENT_NAME [-date dd/MM/yyyy HH:mm] \n"
+ "Restrictions: Name has a maximum of 20 characters, and dates cannot clash \n"
+ "Example: " + COMMAND_WORD + " 1 Tutorial/newName -date 10/10/2024 18:00";

public static final String MESSAGE_EDIT_EVENT_SUCCESS = "Edited Event: %1$s";
Expand Down

0 comments on commit 0efbaa0

Please sign in to comment.