blob: 84f7f8bf340a7ba8de545af0a4d7ca9871b53426 [file] [log] [blame]
akshay narayan02b59fc2016-10-20 17:36:36 +08001|| ===================================================
Damith C. Rajapaksefa388452016-08-01 22:06:48 +08002|| ===================================================
Damith C. Rajapaksefa388452016-08-01 22:06:48 +08003|| Welcome to your Address Book!
Damith C. Rajapaksecd415b22016-08-16 08:54:28 +08004|| AddessBook Level 2 - Version 1.0
5|| Launch command format: java seedu.addressbook.Main [STORAGE_FILE_PATH]
Song Zhiwen2fdb1242017-01-03 18:17:59 +08006|| Using storage file : addressbook.xml
Damith C. Rajapaksecd415b22016-08-16 08:54:28 +08007|| ===================================================
Damith C. Rajapaksefa388452016-08-01 22:06:48 +08008|| Enter command: || [Command entered: sfdfd]
Leow Yijin40db3bb2016-08-10 18:47:14 +08009|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
10|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
11|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
12|| delete: Deletes the person identified by the index number used in the last person listing.
13|| Parameters: INDEX
14|| Example: delete 1
15|| Clears address book permanently.
16|| Example: clear
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080017|| find: Finds all persons whose names contain any of the specified keywords (case-sensitive) and displays them as a list with index numbers.
Leow Yijin40db3bb2016-08-10 18:47:14 +080018|| Parameters: KEYWORD [MORE_KEYWORDS]...
19|| Example: find alice bob charlie
20|| list: Displays all persons in the address book as a list with index numbers.
21|| Example: list
22|| view: Views the non-private details of the person identified by the index number in the last shown person listing.
23|| Parameters: INDEX
24|| Example: view 1
25|| viewall: Views the non-private details of the person identified by the index number in the last shown person listing.
26|| Parameters: INDEX
27|| Example: viewall 1
28|| help: Shows program usage instructions.
29|| Example: help
30|| exit: Exits the program.
31|| Example: exit
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080032|| ===================================================
Leow Yijin1ed45b72016-08-27 10:23:28 +080033|| Enter command: || [Command entered: delete 1]
34|| The person index provided is invalid
35|| ===================================================
36|| Enter command: || [Command entered: view 1]
37|| The person index provided is invalid
38|| ===================================================
39|| Enter command: || [Command entered: viewall 1]
40|| The person index provided is invalid
41|| ===================================================
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080042|| Enter command: || [Command entered: clear]
43|| Address book has been cleared!
44|| ===================================================
45|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +080046||
47|| 0 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080048|| ===================================================
49|| Enter command: || [Command entered: add wrong args wrong args]
Leow Yijin40db3bb2016-08-10 18:47:14 +080050|| Invalid command format!
51|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
52|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
53|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080054|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080055|| Enter command: || [Command entered: add Valid Name 12345 e/valid@email.butNoPhonePrefix a/valid, address]
56|| Invalid command format!
57|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
58|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
59|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080060|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080061|| Enter command: || [Command entered: add Valid Name p/12345 valid@email.butNoPrefix a/valid, address]
62|| Invalid command format!
63|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
64|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
65|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080066|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080067|| Enter command: || [Command entered: add Valid Name p/12345 e/valid@email.butNoAddressPrefix valid, address]
68|| Invalid command format!
69|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
70|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
71|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080072|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080073|| Enter command: || [Command entered: add Valid Name p/12345 e/valid@email.butNoTagPrefix a/valid, address t/goodTag noPrefixTag]
74|| Tags names should be alphanumeric
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080075|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080076|| Enter command: || [Command entered: add []\[;] p/12345 e/valid@e.mail a/valid, address]
Neurrone70f60ba2017-01-08 15:09:47 +080077|| Person names should be spaces or alphabetic characters
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080078|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080079|| Enter command: || [Command entered: add Valid Name p/not_numbers e/valid@e.mail a/valid, address]
80|| Person phone numbers should only contain numbers
81|| ===================================================
82|| Enter command: || [Command entered: add Valid Name p/12345 e/notAnEmail a/valid, address]
83|| Person emails should be 2 alphanumeric/period strings separated by '@'
84|| ===================================================
85|| Enter command: || [Command entered: add Valid Name p/12345 e/valid@e.mail a/valid, address t/invalid_-[.tag]
86|| Tags names should be alphanumeric
87|| ===================================================
88|| Enter command: || [Command entered: add Adam Brown p/111111 e/adam@gmail.com a/111, alpha street]
89|| New person added: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080090|| ===================================================
91|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +080092|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
93||
94|| 1 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080095|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +080096|| Enter command: || [Command entered: add Betsy Choo pp/222222 pe/benchoo@nus.edu.sg pa/222, beta street t/secretive]
97|| New person added: Betsy Choo Phone: (private) 222222 Email: (private) benchoo@nus.edu.sg Address: (private) 222, beta street Tags: [secretive]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +080098|| ===================================================
99|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800100|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
101|| 2. Betsy Choo Tags: [secretive]
102||
103|| 2 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800104|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +0800105|| Enter command: || [Command entered: add Charlie Dickson pp/333333 e/charlie.d@nus.edu.sg a/333, gamma street t/friends t/school]
106|| New person added: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800107|| ===================================================
108|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800109|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
110|| 2. Betsy Choo Tags: [secretive]
111|| 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
112||
113|| 3 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800114|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +0800115|| Enter command: || [Command entered: add Dickson Ee p/444444 pe/dickson@nus.edu.sg a/444, delta street t/friends]
116|| New person added: Dickson Ee Phone: 444444 Email: (private) dickson@nus.edu.sg Address: 444, delta street Tags: [friends]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800117|| ===================================================
118|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800119|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
120|| 2. Betsy Choo Tags: [secretive]
121|| 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
122|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
123||
124|| 4 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800125|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +0800126|| Enter command: || [Command entered: add Esther Potato p/555555 e/esther@not.a.real.potato pa/555, epsilon street t/tubers t/starchy]
127|| New person added: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800128|| ===================================================
129|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800130|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
131|| 2. Betsy Choo Tags: [secretive]
132|| 3. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
133|| 4. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
134|| 5. Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy]
135||
136|| 5 persons listed!
137|| ===================================================
Leow Yijin3a9d2ef2016-08-13 00:51:47 +0800138|| Enter command: || [Command entered: add Esther Potato p/555555 e/esther@not.a.real.potato pa/555, epsilon street t/tubers t/starchy]
139|| This person already exists in the address book
140|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +0800141|| Enter command: || [Command entered: view]
142|| Invalid command format!
143|| view: Views the non-private details of the person identified by the index number in the last shown person listing.
144|| Parameters: INDEX
145|| Example: view 1
146|| ===================================================
147|| Enter command: || [Command entered: viewall]
148|| Invalid command format!
149|| viewall: Views the non-private details of the person identified by the index number in the last shown person listing.
150|| Parameters: INDEX
151|| Example: viewall 1
152|| ===================================================
153|| Enter command: || [Command entered: view should be only one number]
154|| The person index provided is invalid
155|| ===================================================
156|| Enter command: || [Command entered: viewall should only be one number]
157|| The person index provided is invalid
158|| ===================================================
159|| Enter command: || [Command entered: view -1]
160|| The person index provided is invalid
161|| ===================================================
162|| Enter command: || [Command entered: view 0]
163|| The person index provided is invalid
164|| ===================================================
165|| Enter command: || [Command entered: view 6]
166|| The person index provided is invalid
167|| ===================================================
168|| Enter command: || [Command entered: viewall -1]
169|| The person index provided is invalid
170|| ===================================================
171|| Enter command: || [Command entered: viewall 0]
172|| The person index provided is invalid
173|| ===================================================
174|| Enter command: || [Command entered: viewall 6]
175|| The person index provided is invalid
176|| ===================================================
177|| Enter command: || [Command entered: view 1]
178|| Viewing person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
179|| ===================================================
180|| Enter command: || [Command entered: viewall 1]
181|| Viewing person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
182|| ===================================================
183|| Enter command: || [Command entered: view 3]
184|| Viewing person: Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
185|| ===================================================
186|| Enter command: || [Command entered: view 4]
187|| Viewing person: Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
188|| ===================================================
189|| Enter command: || [Command entered: view 5]
190|| Viewing person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy]
191|| ===================================================
192|| Enter command: || [Command entered: viewall 3]
193|| Viewing person: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
194|| ===================================================
195|| Enter command: || [Command entered: viewall 4]
196|| Viewing person: Dickson Ee Phone: 444444 Email: (private) dickson@nus.edu.sg Address: 444, delta street Tags: [friends]
197|| ===================================================
198|| Enter command: || [Command entered: viewall 5]
199|| Viewing person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800200|| ===================================================
201|| Enter command: || [Command entered: find]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800202|| Invalid command format!
203|| find: Finds all persons whose names contain any of the specified keywords (case-sensitive) and displays them as a list with index numbers.
204|| Parameters: KEYWORD [MORE_KEYWORDS]...
205|| Example: find alice bob charlie
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800206|| ===================================================
207|| Enter command: || [Command entered: find bet]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800208||
209|| 0 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800210|| ===================================================
211|| Enter command: || [Command entered: find 23912039120]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800212||
213|| 0 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800214|| ===================================================
215|| Enter command: || [Command entered: find betsy]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800216||
217|| 0 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800218|| ===================================================
219|| Enter command: || [Command entered: find Betsy]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800220|| 1. Betsy Choo Tags: [secretive]
221||
222|| 1 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800223|| ===================================================
224|| Enter command: || [Command entered: find Dickson]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800225|| 1. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
226|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
227||
228|| 2 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800229|| ===================================================
230|| Enter command: || [Command entered: find Charlie Betsy]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800231|| 1. Betsy Choo Tags: [secretive]
232|| 2. Charlie Dickson Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
233||
234|| 2 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800235|| ===================================================
236|| Enter command: || [Command entered: delete]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800237|| Invalid command format!
238|| delete: Deletes the person identified by the index number used in the last person listing.
239|| Parameters: INDEX
240|| Example: delete 1
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800241|| ===================================================
242|| Enter command: || [Command entered: delete should be only one number]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800243|| The person index provided is invalid
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800244|| ===================================================
245|| Enter command: || [Command entered: delete -1]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800246|| The person index provided is invalid
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800247|| ===================================================
248|| Enter command: || [Command entered: delete 0]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800249|| The person index provided is invalid
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800250|| ===================================================
251|| Enter command: || [Command entered: delete 3]
252|| The person index provided is invalid
253|| ===================================================
254|| Enter command: || [Command entered: delete 2]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800255|| Deleted Person: Charlie Dickson Phone: (private) 333333 Email: charlie.d@nus.edu.sg Address: 333, gamma street Tags: [school][friends]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800256|| ===================================================
257|| Enter command: || [Command entered: delete 2]
258|| Person could not be found in address book
259|| ===================================================
Leow Yijin40db3bb2016-08-10 18:47:14 +0800260|| Enter command: || [Command entered: view 2]
261|| Person could not be found in address book
262|| ===================================================
263|| Enter command: || [Command entered: viewall 2]
264|| Person could not be found in address book
265|| ===================================================
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800266|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800267|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
268|| 2. Betsy Choo Tags: [secretive]
269|| 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
270|| 4. Esther Potato Phone: 555555 Email: esther@not.a.real.potato Tags: [tubers][starchy]
271||
272|| 4 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800273|| ===================================================
274|| Enter command: || [Command entered: delete 4]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800275|| Deleted Person: Esther Potato Phone: 555555 Email: esther@not.a.real.potato Address: (private) 555, epsilon street Tags: [tubers][starchy]
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800276|| ===================================================
277|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800278|| 1. Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
279|| 2. Betsy Choo Tags: [secretive]
280|| 3. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
281||
282|| 3 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800283|| ===================================================
284|| Enter command: || [Command entered: delete 1]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800285|| Deleted Person: Adam Brown Phone: 111111 Email: adam@gmail.com Address: 111, alpha street Tags:
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800286|| ===================================================
287|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800288|| 1. Betsy Choo Tags: [secretive]
289|| 2. Dickson Ee Phone: 444444 Address: 444, delta street Tags: [friends]
290||
291|| 2 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800292|| ===================================================
293|| Enter command: || [Command entered: clear]
294|| Address book has been cleared!
295|| ===================================================
296|| Enter command: || [Command entered: list]
Leow Yijin40db3bb2016-08-10 18:47:14 +0800297||
298|| 0 persons listed!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800299|| ===================================================
300|| Enter command: || [Command entered: exit]
Damith C. Rajapaksecd415b22016-08-16 08:54:28 +0800301|| Exiting Address Book as requested ...
302|| ===================================================
303|| Good bye!
Damith C. Rajapaksefa388452016-08-01 22:06:48 +0800304|| ===================================================
305|| ===================================================