Skip to content

Commit

Permalink
Update error message for wrong input format
Browse files Browse the repository at this point in the history
  • Loading branch information
yooplo committed Oct 10, 2024
1 parent 3a8fb03 commit db4fd07
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@
public abstract class AbstractFindCommand extends Command {

public static final String COMMAND_WORD = "find";
public static final String NAME_COMMAND_WORD = "/n";
public static final String EMAIL_COMMAND_WORD = "/e";
public static final String CONTACT_COMMAND_WORD = "/c";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all persons whose names, contacts or emails "
+ "contain any of the specified keywords (case-insensitive) and displays them as a list with indices.\n"
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
+ "Example: " + COMMAND_WORD + " alice bob charlie";
+ "Example:\n"
+ COMMAND_WORD + NAME_COMMAND_WORD + " alice bob charlie\n"
+ COMMAND_WORD + EMAIL_COMMAND_WORD + " [email protected]\n"
+ COMMAND_WORD + CONTACT_COMMAND_WORD + " 12345678\n";

private final ContainsKeywordsPredicate predicate;

Expand Down

0 comments on commit db4fd07

Please sign in to comment.