| || =================================================== |
| || =================================================== |
| || Welcome to your Address Book! |
| || AddessBook Level 2 - Version 1.0 |
| || Launch command format: java seedu.addressbook.Main [STORAGE_FILE_PATH] |
| || Using storage file : addressbook.xml |
| || =================================================== |
| || Enter command: || [Command entered: sfdfd] |
| || add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. |
| || Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... |
| || Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney |
| || delete: Deletes the person identified by the index number used in the last person listing. |
| || Parameters: INDEX |
| || Example: delete 1 |
| || Clears address book permanently. |
| || Example: clear |
| || find: Finds all persons whose names contain any of the specified keywords (case-sensitive) and displays them as a list with index numbers. |
| || Parameters: KEYWORD [MORE_KEYWORDS]... |
| || Example: find alice bob charlie |
| || list: Displays all persons in the address book as a list with index numbers. |
| || Example: list |
| || view: Views the non-private details of the person identified by the index number in the last shown person listing. |
| || Parameters: INDEX |
| || Example: view 1 |
| || viewall: Views the non-private details of the person identified by the index number in the last shown person listing. |
| || Parameters: INDEX |
| || Example: viewall 1 |
| || help: Shows program usage instructions. |
| || Example: help |
| || exit: Exits the program. |
| || Example: exit |
| || =================================================== |
| || Enter command: || [Command entered: delete 1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: view 1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: viewall 1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: clear] |
| || Address book has been cleared! |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || |
| || 0 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add wrong args wrong args] |
| || Invalid command format! |
| || add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. |
| || Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... |
| || Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name 12345 e/valid@email.butNoPhonePrefix a/valid, address] |
| || Invalid command format! |
| || add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. |
| || Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... |
| || Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/12345 valid@email.butNoPrefix a/valid, address] |
| || Invalid command format! |
| || add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. |
| || Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... |
| || Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/12345 e/valid@email.butNoAddressPrefix valid, address] |
| || Invalid command format! |
| || add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix. |
| || Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]... |
| || Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/12345 e/valid@email.butNoTagPrefix a/valid, address t/goodTag noPrefixTag] |
| || Tags names should be alphanumeric |
| || =================================================== |
| || Enter command: || [Command entered: add []\[;] p/12345 e/valid@e.mail a/valid, address] |
| || Person names should be spaces or alphabetic characters |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/not_numbers e/valid@e.mail a/valid, address] |
| || Person phone numbers should only contain numbers |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/12345 e/notAnEmail a/valid, address] |
| || Person emails should be 2 alphanumeric/period strings separated by '@' |
| || =================================================== |
| || Enter command: || [Command entered: add Valid Name p/12345 e/valid@e.mail a/valid, address t/invalid_-[.tag] |
| || Tags names should be alphanumeric |
| || =================================================== |
| || Enter command: || [Command entered: add Adam Brown p/111111 e/adam@gmail.com a/111, alpha street] |
| || New person added: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || |
| || 1 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add Betsy Choo pp/222222 pe/benchoo@nus.edu.sg pa/222, beta street t/secretive] |
| || New person added: Betsy Choo Phone: (private) 222222 Email: (private) benchoo@nus.edu.sg Address: (private) 222, beta street Tags: [secretive] |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || |
| || 2 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add Charlie Dickson pp/333333 e/charlie.d@nus.edu.sg a/333, gamma street t/friends t/school] |
| || New person added: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || |
| || 3 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add Dickson Ee p/444444 pe/dickson@nus.edu.sg a/444, delta street t/friends] |
| || New person added: Dickson Ee Phone: 444444 Email: (private) dickson@nus.edu.sg Address: 444, delta street Tags: [friends] |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || |
| || 4 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add Esther Potato p/555555 e/esther@not.a.real.potato pa/555, epsilon street t/tubers t/starchy] |
| || New person added: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy] |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || 5. Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy] |
| || |
| || 5 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: add Esther Potato p/555555 e/esther@not.a.real.potato pa/555, epsilon street t/tubers t/starchy] |
| || This person already exists in the address book |
| || =================================================== |
| || Enter command: || [Command entered: view] |
| || Invalid command format! |
| || view: Views the non-private details of the person identified by the index number in the last shown person listing. |
| || Parameters: INDEX |
| || Example: view 1 |
| || =================================================== |
| || Enter command: || [Command entered: viewall] |
| || Invalid command format! |
| || viewall: Views the non-private details of the person identified by the index number in the last shown person listing. |
| || Parameters: INDEX |
| || Example: viewall 1 |
| || =================================================== |
| || Enter command: || [Command entered: view should be only one number] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: viewall should only be one number] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: view -1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: view 0] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: view 6] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: viewall -1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: viewall 0] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: viewall 6] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: view 1] |
| || Viewing person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || =================================================== |
| || Enter command: || [Command entered: viewall 1] |
| || Viewing person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || =================================================== |
| || Enter command: || [Command entered: view 3] |
| || Viewing person: Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || =================================================== |
| || Enter command: || [Command entered: view 4] |
| || Viewing person: Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || =================================================== |
| || Enter command: || [Command entered: view 5] |
| || Viewing person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy] |
| || =================================================== |
| || Enter command: || [Command entered: viewall 3] |
| || Viewing person: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || =================================================== |
| || Enter command: || [Command entered: viewall 4] |
| || Viewing person: Dickson Ee Phone: 444444 Email: (private) dickson@nus.edu.sg Address: 444, delta street Tags: [friends] |
| || =================================================== |
| || Enter command: || [Command entered: viewall 5] |
| || Viewing person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy] |
| || =================================================== |
| || Enter command: || [Command entered: find] |
| || Invalid command format! |
| || find: Finds all persons whose names contain any of the specified keywords (case-sensitive) and displays them as a list with index numbers. |
| || Parameters: KEYWORD [MORE_KEYWORDS]... |
| || Example: find alice bob charlie |
| || =================================================== |
| || Enter command: || [Command entered: find bet] |
| || |
| || 0 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: find 23912039120] |
| || |
| || 0 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: find betsy] |
| || |
| || 0 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: find Betsy] |
| || 1. Betsy Choo Tags: [secretive] |
| || |
| || 1 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: find Dickson] |
| || 1. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || |
| || 2 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: find Charlie Betsy] |
| || 1. Betsy Choo Tags: [secretive] |
| || 2. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || |
| || 2 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: delete] |
| || Invalid command format! |
| || delete: Deletes the person identified by the index number used in the last person listing. |
| || Parameters: INDEX |
| || Example: delete 1 |
| || =================================================== |
| || Enter command: || [Command entered: delete should be only one number] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: delete -1] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: delete 0] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: delete 3] |
| || The person index provided is invalid |
| || =================================================== |
| || Enter command: || [Command entered: delete 2] |
| || Deleted Person: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends] |
| || =================================================== |
| || Enter command: || [Command entered: delete 2] |
| || Person could not be found in address book |
| || =================================================== |
| || Enter command: || [Command entered: view 2] |
| || Person could not be found in address book |
| || =================================================== |
| || Enter command: || [Command entered: viewall 2] |
| || Person could not be found in address book |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || 4. Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy] |
| || |
| || 4 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: delete 4] |
| || Deleted Person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy] |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || 2. Betsy Choo Tags: [secretive] |
| || 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || |
| || 3 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: delete 1] |
| || Deleted Person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags: |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || 1. Betsy Choo Tags: [secretive] |
| || 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends] |
| || |
| || 2 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: clear] |
| || Address book has been cleared! |
| || =================================================== |
| || Enter command: || [Command entered: list] |
| || |
| || 0 persons listed! |
| || =================================================== |
| || Enter command: || [Command entered: exit] |
| || Exiting Address Book as requested ... |
| || =================================================== |
| || Good bye! |
| || =================================================== |
| || =================================================== |