Skip to content

Commit

Permalink
Fix help messages
Browse files Browse the repository at this point in the history
  • Loading branch information
zekone committed Nov 8, 2023
1 parent 4fcff1d commit 48d69cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class AddEventCommand extends AddCommand {

public static final String MESSAGE_USAGE = COMMAND_WORD + " " + SECONDARY_COMMAND_WORD
+ ": Adds an event to a contact.\n"
+ "Usage: add event -n CONTACT_NAME -en EVENT_NAME -st "
+ "START_TIME [-et END_TIME] [-loc LOCATION] [-i INFORMATION]";
+ "Usage: add event -id CONTACT_ID -en EVENT_NAME -st "
+ "START_TIME [-et END_TIME] [-loc LOCATION] [-info INFORMATION]";

private final Event toAdd;
private final ContactID contactId;
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/seedu/address/logic/commands/AddPersonCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ public class AddPersonCommand extends AddCommand {

public static final String MESSAGE_USAGE = COMMAND_WORD + " "
+ SECONDARY_COMMAND_WORD
+ ": Adds a contact to the contact list. "
+ "Parameters: "
+ ": Adds a contact to the contact list. " + "\n"
+ "Usage: "
+ COMMAND_WORD + " "
+ SECONDARY_COMMAND_WORD + " "
+ PREFIX_NAME + " NAME "
+ PREFIX_PHONE + " PHONE "
+ PREFIX_EMAIL + " EMAIL "
+ PREFIX_ADDRESS + " ADDRESS "
+ PREFIX_TAG + " TAGNAME" + "\n"
+ "Example: " + COMMAND_WORD + " " + SECONDARY_COMMAND_WORD
+ "[" + PREFIX_TAG + " TAGNAME...]" + "\n"
+ "Example: "
+ COMMAND_WORD + " "
+ SECONDARY_COMMAND_WORD + " "
+ PREFIX_NAME + " John Doe "
+ PREFIX_PHONE + " 98765432 "
+ PREFIX_EMAIL + " [email protected] "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FindCommand extends Command {

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all persons whose names contain any of "
+ "the specified keywords (case-insensitive) and displays them as a list with index numbers.\n"
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
+ "Parameters: KEYWORD [MORE_KEYWORDS...]\n"
+ "Example: " + COMMAND_WORD + " alice bob charlie";

private final NameContainsKeywordsPredicate predicate;
Expand Down

0 comments on commit 48d69cf

Please sign in to comment.