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.
Merge pull request #51 from ruishanteo/fix-add-t-ug
Standardise UG format for add-t
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -106,21 +106,21 @@ Adds a tutor to the address book. | |
|
||
 | ||
|
||
Format: `add-t n/NAME p/PHONE NUMBER e/EMAIL` | ||
**Format**: `add-t n/NAME p/PHONE NUMBER e/EMAIL` | ||
|
||
Example: | ||
**Example**: | ||
* `add-t n/John Doe p/98765432 e/[email protected]` | ||
* `add-t n/Betsy Crowe p/91234567 e/[email protected]` | ||
|
||
Acceptable values for each parameter: | ||
* `NAME`: Only string input accepted | ||
* `PHONE`: NUMBER Only numerical input | ||
**Acceptable values for each parameter**: | ||
* `NAME`: Only string input accepted | ||
* `PHONE NUMBER`: Only numerical input | ||
* `EMAIL`: Only valid email addresses | ||
|
||
Expected output: | ||
**Expected output**: | ||
* `New tutor John Doe 98765432 [email protected] has been added.` | ||
|
||
Error messages: | ||
**Error messages**: | ||
* `Missing parameter: n/`: The tag n/ is missing or tutor’s name is missing. | ||
* `Missing parameter: p/`: The tag p/ is missing or tutor’s phone number is missing. | ||
* `Missing parameter: e/`: The tag e/ is missing or tutor’s email is missing. | ||
|