forked from nus-cs2103-AY2324S2/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.
Merge pull request #98 from Jolonauh/user-guide
Update add and shortcut section of user guide
- Loading branch information
Showing
1 changed file
with
25 additions
and
21 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 |
---|---|---|
|
@@ -173,20 +173,20 @@ ___ | |
|
||
_This command adds a new client to your client list._ | ||
|
||
**Format:** `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS k/NEXT_OF_KIN d/DESCRIPTION [t/TAG]…` | ||
**Format:** `add n/NAME p/PHONE_NUMBER e/EMAIL [a/ADDRESS] [k/NEXT_OF_KIN] [d/DESCRIPTION] [t/TAG]…` | ||
|
||
<panel header="Parameter Descriptions and Remarks" alt="Parameters" minimized> | ||
<markdown> | ||
|
||
| Parameter | Description | Remarks | | ||
|----------------|----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| n/NAME | Name of client that you want to add | Name must be unique, alphanumeric and is compulsory | | ||
| p/PHONE_NUMBER | Phone Number of client that you want to add | Phone number should only contain numbers and is compulsory | | ||
| e/EMAIL | Email of client that you want to add | Emails is compulsory and should be of the format local-part@domain and adhere to the following constraints:<br/>1. The local-part should only contain alphanumeric characters and these special characters, excluding the parentheses, (+_.-). The local-part may not start or end with any special characters.<br/>2. This is followed by a '@' and then a domain name. The domain name is made up of domain labels separated by periods.<br/>The domain name must:<br/> - end with a domain label at least 2 characters long<br/> - have each domain label start and end with alphanumeric characters<br/> - have each domain label consist of alphanumeric characters, separated only by hyphens, if any. | | ||
| a/ADDRESS | Address of client that you want to add | Compulsory | | ||
| k/NEXT_OF_KIN | Next of Kin details of client that you want to add | Name must be alphanumeric and is compulsory | | ||
| d/DESCRIPTION | Description of client that you want to add | Description should not be blank and is compulsory | | ||
| t/TAG | Tag to identify the client | A person can have any number of tags (or even 0) | | ||
| Parameter | Description | Remarks | | ||
|----------------|----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| n/NAME | Name of client that you want to add | Name must be unique, alphanumeric and is compulsory | | ||
| p/PHONE_NUMBER | Phone Number of client that you want to add | Phone number should only contain numbers and is compulsory | | ||
| e/EMAIL | Email of client that you want to add | Emails should be of the format local-part@domain and adhere to the following constraints:<br/>1. The local-part should only contain alphanumeric characters and these special characters, excluding the parentheses, (+_.-). The local-part may not start or end with any special characters.<br/>2. This is followed by a '@' and then a domain name. The domain name is made up of domain labels separated by periods.<br/>The domain name must:<br/> - end with a domain label at least 2 characters long<br/> - have each domain label start and end with alphanumeric characters<br/> - have each domain label consist of alphanumeric characters, separated only by hyphens, if any. | | ||
| a/ADDRESS | Address of client that you want to add | - | | ||
| k/NEXT_OF_KIN | Next of Kin details of client that you want to add | Name must be alphanumeric | | ||
| d/DESCRIPTION | Description of client that you want to add | Description should not be blank | | ||
| t/TAG | Tag to identify the client | A person can have any number of tags (or even 0) | | ||
|
||
|
||
<box type="tip" seamless> | ||
|
@@ -594,7 +594,11 @@ _These are a list of helpful actions to facilitate the ease of use of our applic | |
|--------|---------------------------------------------------| | ||
| `Up` | Displays to the previous command entered, if any. | | ||
| `Down` | Displays the next command entered, if any. | | ||
| `Tab` | Automatically completes commands, if available. | | ||
|
||
<box type="info"> | ||
|
||
**Note**: A message will be displayed in the dialog to notify users when there are no previous/next command available. | ||
</box> | ||
|
||
### Saving the data | ||
|
||
|
@@ -616,16 +620,16 @@ ___ | |
|
||
## Command summary | ||
|
||
| Action | Format | Examples | | ||
|-------------|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| | ||
| **Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]… [k/NEXTOFKIN]` | `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 d/Suffers from anxiety k/Jon Ho t/friend t/colleague` | | ||
| **Update** | `update u/existing user [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…` | `Update u/Jane Doe n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-011` | | ||
| **Find** | `find n/NAME… [a/ADD]… [e/EMAIL]… [t/TAG]… [k/KIN]… [d/DESC]… [p/PHONE]…` | `find n/James a/clementi e/gmail t/important k/charles d/tall p/123` | | ||
| **Undo** | `undo` | | | ||
| **Redo** | `redo` | | | ||
| **Display** | `display n/NAME` | | | ||
| **Clear** | `clear` | | | ||
| **Exit** | `exit` | | | ||
| Action | Format | Examples | | ||
|-------------|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| | ||
| **Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL [a/ADDRESS] [k/NEXTOFKIN] [d/DESCRIPTION] [t/TAG]… ` | `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 d/Suffers from anxiety k/Jon Ho t/friend t/colleague` | | ||
| **Update** | `update u/existing user [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…` | `Update u/Jane Doe n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-011` | | ||
| **Find** | `find n/NAME… [a/ADD]… [e/EMAIL]… [t/TAG]… [k/KIN]… [d/DESC]… [p/PHONE]…` | `find n/James a/clementi e/gmail t/important k/charles d/tall p/123` | | ||
| **Undo** | `undo` | | | ||
| **Redo** | `redo` | | | ||
| **Display** | `display n/NAME` | | | ||
| **Clear** | `clear` | | | ||
| **Exit** | `exit` | | | ||
|
||
___ | ||
|
||
|