This product is not meant for end-users and therefore there is no user-friendly installer. Please refer to the Setting up section to learn how to set up the project.
Using IntelliJ
Project Explorer
(usually located at the left side)Project Explorer
is not visible, press ALT+1 for Windows/Linux, CMD+1 for macOS to open the Project Explorer
tabsrc
folder and locate the Main
fileRun Main.main()
Console
(usually located at the bottom side)Console
Using Command Line
Terminal
/Command Prompt
cd
into the project's out\production\addressbook-level2
directoryjava seedu.addressbook.Main
, then Enter to executeWhat's different from AddressBook-Level1:
a/
) and tags (t/
)pa/
) (pe/
) (pp/
)view
: shows non-private details), (viewall
: shows all details)help
Format: help
Help is also shown if you enter an incorrect command e.g.
abcd
add
Adds a person to the address book
Format: add NAME [p]p/PHONE_NUMBER [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
Words in
UPPER_CASE
are the parameters, items inSQUARE_BRACKETS
are optional, items with...
after them can have multiple instances. Order of parameters are fixed.Put a
p
before the phone / email / address prefixes to mark it asprivate
.private
details can only be seen using theviewall
command.Persons can have any number of tags (including 0)
Examples:
add John Doe p/98765432 e/johnd@gmail.com a/John street, block 123, #01-01
add Betsy Crowe pp/1234567 e/betsycrowe@gmail.com pa/Newgate Prison t/criminal t/friend
list
Shows a list of all persons in the address book.
Format: list
find
Finds persons whose names contain any of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
The search is case sensitive, the order of the keywords does not matter, only the name is searched, and persons matching at least one keyword will be returned (i.e.
OR
search).
Examples:
find John
John Doe
but not john
find Betsy Tim John
Betsy
, Tim
, or John
delete
Deletes the specified person from the address book. Irreversible.
Format: delete INDEX
Deletes the person at the specified
INDEX
. The index refers to the index number shown in the most recent listing.
Examples:
list
delete 2
find Betsy
delete 1
find
command.view
Displays the non-private details of the specified person.
Format: view INDEX
Views the person at the specified
INDEX
. The index refers to the index number shown in the most recent listing.
Examples:
list
view 2
find Betsy
view 1
find
command.viewall
Displays all details (including private details) of the specified person.
Format: viewall INDEX
Views all details of the person at the specified
INDEX
. The index refers to the index number shown in the most recent listing.
Examples:
list
viewall 2
find Betsy
viewall 1
find
command.clear
Clears all entries from the address book.
Format: clear
exit
Exits the program.
Format: exit
Address book data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
Address book data are saved in a file called addressbook.xml
in the project root folder. You can change the location by specifying the file path as a program argument.
Example:
java seedu.addressbook.Main mydata.xml
The file name must end in
.xml
for it to be acceptable to the program.When running the program inside IntelliJ, you can set command line parameters before running the program.