diff --git a/docs/UserGuide.md b/docs/UserGuide.md index e66fb808bc2..41b053b36d0 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -92,7 +92,7 @@ addclient: Adds a client to the address book. Parameters: n/NAME p/PHONE e/EMAIL Example: addclient n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/classmate ``` -### View all clients +### List 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`. @@ -110,7 +110,7 @@ In output section of the

After using listclient command

-### View all leads +### List all leads - 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`. @@ -127,6 +127,33 @@ In output section of the

After using listlead command

+### View Specific Person + +- What it does: View a specific person that you have stored, including their basic information and another relevant lead/client +details. +- Command: `view INDEX`. +- Example usage: `view 1`. +- Acceptable values for `INDEX` parameter: + - Must be an integer from `1` to the last index of the main list. +- Precise expected output when the command succeeds: + +`Viewed Person Successfully` + +- Precise expected output when command fails: + +`The person index provided is invalid` + +

Example usage:

+ +
+ +

After using View Command on a Lead

+
+ +
+ +

After using View Command on a Client

+
### Delete [Coming soon] diff --git a/docs/images/ViewExample.png b/docs/images/ViewExample.png new file mode 100644 index 00000000000..c55b3f70f3d Binary files /dev/null and b/docs/images/ViewExample.png differ diff --git a/docs/images/ViewExampleClient.png b/docs/images/ViewExampleClient.png new file mode 100644 index 00000000000..02db5c688b3 Binary files /dev/null and b/docs/images/ViewExampleClient.png differ diff --git a/src/main/java/seedu/address/logic/parser/AddressBookParser.java b/src/main/java/seedu/address/logic/parser/AddressBookParser.java index 1a7fa05374c..bd4ce66cb77 100644 --- a/src/main/java/seedu/address/logic/parser/AddressBookParser.java +++ b/src/main/java/seedu/address/logic/parser/AddressBookParser.java @@ -91,7 +91,6 @@ public Command parseCommand(String userInput) throws ParseException { case ListLeadCommand.COMMAND_WORD: return new ListLeadCommand(); - case ConvertLeadToClientCommand.COMMAND_WORD: return new ConvertLeadToClientCommandParser().parse(arguments); @@ -100,7 +99,6 @@ public Command parseCommand(String userInput) throws ParseException { case ViewCommand.COMMAND_WORD: return new ViewCommandParser().parse(arguments); - default: logger.finer("This user input caused a ParseException: " + userInput); throw new ParseException(MESSAGE_UNKNOWN_COMMAND);