Skip to content

Commit

Permalink
Fix more bugs with UG
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruixi committed Nov 14, 2023
1 parent ca53aa1 commit 83b9bdf
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,15 @@ it has to be added like this: `CS2100/T12, CS2100/Lab30`).
- Please use a comma (`,`) to separate the different roles, contacts and courses.

- The square brackets, (`[ ]`), are not needed when entering optional fields [see examples below for more details].
</box>

<box type="important" light>

> #### IMPORTANT:
> Invalid prefix format will NOT be recognised. It will be treated as an input for the
previous prefix (if any), or it will be treated as an invalid add command format if there is no previous prefix. [See Examples 7 & 8 below for more details.]
**Important:**

- Specifiers must be preceded by a space.
- Invalid specifiers will NOT be recognised. It will be treated as an input for the previous specifier (if any), or it will be treated as an invalid add command format if there is no previous specifier. [See Examples 7 & 8 below for more details.]
</md>
</box>

###### EXAMPLE COMMAND:
Expand Down Expand Up @@ -340,8 +345,9 @@ You have added a new person in :
Example 2:

```
You have added a new person in :
Name: Charlie Dueet; Role: Student, TA; Contacts: [@charliee];
You have added a new person in :
Name: Charlie Dueet; Role: Student, TA;
Contacts: [@charliee], [[email protected]];
Courses: GEA1000, QF2103; Tutorials:
```

Expand All @@ -363,9 +369,9 @@ Invalid command format!
add: Adds a person to the address book.
Parameters: --name NAME [--role ROLE1,...] [--contact CONTACT1, ...]
[--course COURSECODE1/CLASS1, ...]
Example: add --name John --role Student, TA
--contact johnd@example.com, 98765432
--course CS2103T/G06, CS2101/G06, CS2100/T24
Example: add --name John --roleStudent, TA
--contactjohnd@example.com, 98765432
--courseCS2103T/G06, CS2101/G06, CS2100/T24
```

Example 4.2: `add`
Expand Down Expand Up @@ -413,7 +419,7 @@ Note: A person with the same name already exists.
Please edit the existing person or change the name of this person to be added
```

**For invalid prefix:**
**For invalid specifier:**

Example 7: `add --name alex yeoh -/-role TA`

Expand Down

0 comments on commit 83b9bdf

Please sign in to comment.