Skip to content

Commit

Permalink
Update format for Filter and Search command usages
Browse files Browse the repository at this point in the history
  • Loading branch information
wyrchris committed Oct 14, 2021
1 parent 1b761a5 commit d9f6e51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Examples:

Finds clients whose contacts match with the given keywords.

Format: `search KEYWORD [MORE_KEYWORDS]... [<attribute>/{ATTRIBUTE_KEYWORD}]...`
Format: `search [KEYWORD]... [<attribute>/{ATTRIBUTE_KEYWORD}]...`

* `KEYWORD` and `MORE_KEYWORDS` will be used to match with all attribute of the person.
* `<attribute>/` refers to the argument tag for the client's attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class FilterCommand extends Command {

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Filter the currently displayed list of persons by"
+ "the specified keywords (case-insensitive) and displays them as a list with index numbers.\n"
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
+ "Parameters: [KEYWORD]... [ATTRIBUTE/ATTRIBUTE_KEYWORDS]...\n"
+ "Example: " + COMMAND_WORD + "e/example.com";

private final PersonContainsKeywordsPredicate predicate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class SearchCommand extends Command {

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Search 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]... [ATTRIBUTE/ATTRIBUTE_KEYWORDS]...\n"
+ "Parameters: [KEYWORD]... [ATTRIBUTE/ATTRIBUTE_KEYWORDS]...\n"
+ "Example: " + COMMAND_WORD + " alice bob charlie a/Blk 40";

private final PersonContainsKeywordsPredicate predicate;
Expand Down

0 comments on commit d9f6e51

Please sign in to comment.