Skip to content

Commit

Permalink
Merge pull request #371 from yixiann/find-usage
Browse files Browse the repository at this point in the history
Update find to match new find
  • Loading branch information
tingkai-mai authored Oct 28, 2022
2 parents 4b8c3df + 941b255 commit 83926fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/_ug/commands/ItemCommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ Item List Box:

**Format:** `find KEYWORD [KEYWORDS]...`

> Finds all items in FoodRem whose names contain any of the specified keywords
> Finds all items in FoodRem whose names contain substrings of the KEYWORDS
```info
* The notation `[KEYWORDS]...` means that we can take in multiple keywords. In this case, at least one `KEYWORD` is required.
* The `KEYWORDS` are case-insensitive. (e.g. "apples" will match "Apples").
* The order of the `KEYWORDS` do not matter (e.g "rose apple" will match "apple rose").
* The result will be items in which `ITEM_NAME` contain any one of the `KEYWORDS` provided.
* The result will be items in which any of the words in `ITEM_NAME` contains a substring of the `KEYWORDS`. (e.g. "c e" will match "Carrot Cake", "cereal", "Cold Escargo" and "eclairs")
```

```tip
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/foodrem/commons/enums/CommandType.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public String getUsage() {
FIND_COMMAND("find") {
@Override
public String getUsage() {
return getCommandWord() + ": Finds all items in FoodRem whose names contain any of "
+ "the specified keywords (case-insensitive).\n\n"
return getCommandWord() + ": Finds all items in FoodRem whose names contain substrings of any of "
+ "the KEYWORDS (case-insensitive).\n\n"
+ "Format:\n"
+ getCommandWord() + " KEYWORD [KEYWORDS]...\n\n"
+ "Examples:\n"
Expand Down

0 comments on commit 83926fa

Please sign in to comment.