Skip to content

Commit

Permalink
Merge pull request #51 from ruishanteo/fix-add-t-ug
Browse files Browse the repository at this point in the history
Standardise UG format for add-t
  • Loading branch information
mfjkri authored Oct 5, 2023
2 parents 37d1470 + 0626696 commit 1a412aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,21 @@ Adds a tutor to the address book.

![add tutor](images/addTutor.png)

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.
Expand Down

0 comments on commit 1a412aa

Please sign in to comment.