Skip to content

Commit

Permalink
Merge pull request AY2324S2-CS2103T-T15-2#241 from RingoftheKing/master
Browse files Browse the repository at this point in the history
Edit MSS to fit advertised Find Behaviour
  • Loading branch information
Rikko1204 authored Apr 11, 2024
2 parents 5158fa9 + 9f7d7b1 commit 2c7215a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,27 +540,27 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli



**Use case: Find a specific existing contact**
**Use case: Find some specific contact(s)**

**MSS**

1. User requests to find a specific contact.
2. AddressBook outputs the contact with all relevant information about the contact.
1. User requests to find some contact(s).
2. AronaPro outputs the contact(s) with all relevant information about the contact.

Use case ends.

**Extensions**

* 1a. User uses the wrong format in his request.

* 1a1. AddressBook shows an error message.
* 1a1. AronaPro shows an error message.
* 1a2. User uses the correct format as shown in the error message for his request.

Use case resumes at step 2.

* 2a. The contact does not exist.

* 2a1. AddressBook shows an error message.
* 2a1. AronaPro shows an empty list, informing that no contacts were found.

Use case ends.

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/seedu/address/logic/commands/FindCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class FindCommand extends Command {
// This string is used by Predicates to help them know when a parameter isn't required.
public static final String NOT_REQUIRED_VALUE = "$$NOT_REQUIRED$$";

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"
+ "Example: " + COMMAND_WORD + " n/alice bob charlie";
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all people who matches ALL of "
+ "the specified keywords and displays them as a list.\n"
+ "Usage: find [id/NUSID] [n/NAME] [e/EMAIL] [p/PHONE_NUMBER] [t/TAG] [g/GROUP]...\n"
+ "Example: " + COMMAND_WORD + " n/Peter Parker " + "g/CS2101";

private final NusIdMatchesPredicate nusIdPredicate;
private final NameContainsKeywordsPredicate namePredicate;
Expand Down

0 comments on commit 2c7215a

Please sign in to comment.