forked from nus-cs2103-AY2425S1/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.
Update error message for wrong input format
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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; | ||
|
||
|