From 1193394633678b619beaa0068eb4073a755e70c5 Mon Sep 17 00:00:00 2001 From: Gary Date: Sun, 12 Nov 2023 00:39:14 +0800 Subject: [PATCH] Ensure sentences end with full-stops, Reformat find command --- docs/UserGuide.md | 79 +++++++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 66448e6f5b0..48b2b64b4e1 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -134,13 +134,13 @@ Opened help window. - The domain name must end with a domain label at least 2 characters long. - Each domain label must start and end with alphanumeric characters and only separated by hyphens, if any. - `ADDRESS`: can contain any alphanumeric character, must not be blank. - - `KEY_MILESTONE`: only contains date in the format of `dd/MM/yyyy` + - `KEY_MILESTONE`: only contains date in the format of `dd/MM/yyyy`. - ``KEY_MILESTONE`` is the date of a lead's life-changing event. - - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021` + - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021`. - Acceptable values for each optional parameter: - `MEETING_TIME`: A string of format `dd/MM/yyyy HH:mm`, must not be blank if any meeting time is declared. - - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021` - - The time must be a valid time in the 24-hour format, these are invalid: `25:00`, `12:60` + - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021`. + - The time must be a valid time in the 24-hour format, these are invalid: `25:00`, `12:60`. - Meeting time can be before the current date and time. - `TAG`: can contain any alphanumeric character, must not be blank if any tag is declared. - Precise expected outputs when the command succeeds: @@ -224,21 +224,23 @@ This client already exists in the address book - What it does: Lists all leads and clients in the address book to the user. The information displayed includes the Lead/Client's name, phone number, email, address, meeting time and tags. - Command: `list`. -- Precise expected output when the command succeeds: -``` -Listed all persons -``` - +- Example usage:

After using list command

+- Precise expected outputs when the command succeeds: +``` +Listed all persons +``` + + ### View all clients - What it does: View all clients you have stored, including their basic information and index in the list of clients, e.g. id, name, age, gender, occupation, etc. - Command: `listclient`. -- Precise expected outputs when the command succeeds: +- Example usage:
@@ -260,7 +262,7 @@ There are no clients in the address book - What it does: View all leads you have stored, including their basic information and index in the list of leads, e.g. id, name, age, gender, occupation, etc. - Command: `listlead`. -- Precise expected outputs when the command succeeds: +- Example usage:
@@ -393,7 +395,7 @@ The person index provided is invalid - `ADDRESS`: can contain any alphanumeric character, must not be blank. - `KEY_MILESTONE`**(Only for leads)**: only contains date in the format of `dd/MM/yyyy`. - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021`. - - If the edited person is a client, no ``KEY_MILESTONE`` of the person will be edited as client does not have ``KEY_MILESTONE`` + - If the edited person is a client, no ``KEY_MILESTONE`` of the person will be edited as client does not have ``KEY_MILESTONE``. - `MEETING_TIME`: only contains date in the format of `dd/MM/yyyy HH:mm`. - The date must be a valid date, these are invalid: `31/02/2020`, `25/13/2021`. - The time must be a valid time in the 24-hour format, these are invalid: `25:00`, `12:60`. @@ -559,11 +561,15 @@ Example: deletemeeting 1 - Precise expected outputs when the command succeeds: -`Converted lead to client` +``` +Converted lead to client +``` - Precise expected outputs when the command fails: -`The person index provided is invalid` +``` +The person index provided is invalid +``` ### Convert client to lead @@ -587,33 +593,21 @@ from current date to ensure a follow-up by the user.
- Precise expected outputs when the command succeeds: -`Converted client to lead` -- Precise expected outputs when the command fails: - -`The person index provided is invalid` - - -### Locating persons by name -- What it does: Finds persons whose names contain any of the given keywords as names. -- Command format: `find NAME [MORE_NAMES]`. -- Example usage: `find John David`. -- Acceptable values for parameter: - - `NAME`: Any name from the list. -- Precise expected output when the command succeeds: ``` - persons listed! +Converted client to lead ``` -- Precise expected output when the command fails: +- Precise expected outputs when the command fails: ``` -Invalid command format! -find: Finds all persons whose names contain any of the specified names (case-insensitive) and displays them as a list with index numbers. -Parameters: NAME [MORE_NAMES]... -Example: find alice bob charlie +The person index provided is invalid ``` + +### Locating persons by name +- What it does: Finds persons whose names contain any of the given keywords as names. +
  • The search is case-insensitive. e.g. John will match john.
  • @@ -622,7 +616,8 @@ Example: find alice bob charlie
-Example usage: +- Command format: `find NAME [MORE_NAMES]`. +- Example usage: `find John David`.
@@ -634,6 +629,22 @@ Example usage:

After using find john david

+- Acceptable values for parameter: + - `NAME`: A keyword used to match against the names of all persons in the list. +- Precise expected output when the command succeeds: +``` + persons listed! +``` + +- Precise expected output when the command fails: + +``` +Invalid command format! +find: Finds all persons whose names contain any of the specified names (case-insensitive) and displays them as a list with index numbers. +Parameters: NAME [MORE_NAMES]... +Example: find alice bob charlie +``` + ### Clear address book - What it does: Clears all entries from the address book. - Command format: `clear`.