forked from nus-cs2103-AY2324S1/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.
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -109,7 +109,16 @@ Examples: | |
|
||
Shows a list of all persons in the address book. | ||
|
||
Format: `list` | ||
Format: `list s/ATTRIBUTE` | ||
|
||
* `s/ATTRIBUTE` is completely **optional**, on default will NOT be sorted. | ||
* As of v1.2, the attributes that are supported are `name` and `email`. | ||
* Attribute is case-insensitive: `list s/NAME` and `list s/name` return the same result. | ||
* The result will be sorted in **ascending** order. | ||
|
||
Examples: | ||
* `list` Shows a list of all persons. | ||
* `list s/name` Show a list of all persons, sorted by name in ascending order. | ||
|
||
### Editing a person : `edit` | ||
|
||
|
@@ -241,5 +250,5 @@ Action | Format, Examples | |
**Delete** | `delete INDEX`<br> e.g., `delete 3` | ||
**Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…`<br> e.g.,`edit 2 n/James Lee e/[email protected]` | ||
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake` | ||
**List** | `list` | ||
**List** | `list s/ATTRIBUTE` <br> e.g. `list s/name` | ||
**Help** | `help` |