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.
Starting the program
Using IntelliJ
-
Find the project in the
Project Explorer
(usually located at the left side)-
If the
Project Explorer
is not visible, press ALT+1 for Windows/Linux, CMD+1 for macOS to open theProject Explorer
tab
-
-
Go to the
src
folder and locate theMain
file -
Right click the file and select
Run Main.main()
-
The program now should run on the
Console
(usually located at the bottom side) -
Now you can interact with the program through the
Console
Using Command Line
-
'Build' the project using IntelliJ
-
Open the
Terminal
/Command Prompt
-
cd
into the project’sout\production\addressbook-level2
directory -
Type
java seedu.addressbook.Main
, then Enter to execute -
Now you can interact with the program through the CLI
Changes from level 1
What’s different from AddressBook-Level1:
-
Support for storing address (
a/
) and tags (t/
) -
Support for marking a contact detail as 'private' (
pa/
) (pe/
) (pp/
) -
View details of a person (
view
: shows non-private details), (viewall
: shows all details)
Viewing help : help
Format: help
Help is also shown if you enter an incorrect command e.g. |
Adding a person: add
Adds a person to the address book.
Format: add NAME [p]p/PHONE_NUMBER [p]e/EMAIL [p]a/ADDRESS [t/TAG]…
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
Listing all persons : list
Shows a list of all persons, along with their non-private details, in the address book.
Format: list
Finding all persons containing any keyword in their name: 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. |
Examples:
-
find John
ReturnsJohn Doe
but notjohn
. -
find Betsy Tim John
Returns Any person having namesBetsy
,Tim
, orJohn
.
Deleting a person : delete
Deletes the specified person from the address book. Irreversible.
Format: delete INDEX
Examples:
-
list
delete 2
Deletes the 2nd person in the address book. -
find Betsy
delete 1
Deletes the 1st person in the results of thefind
command.
View non-private details of a person : view
Displays the non-private details of the specified person.
Format: view INDEX
Examples:
-
list
view 2
Views the 2nd person in the address book. -
find Betsy
view 1
Views the 1st person in the results of thefind
command.
View all details of a person : viewall
Displays all details (including private details) of the specified person.
Format: viewall INDEX
Examples:
-
list
viewall 2
Views all details of the 2nd person in the address book. -
find Betsy
viewall 1
Views all details of the 1st person in the results of thefind
command.
Clearing all entries : clear
Clears all entries from the address book.
Format: clear
Exiting the program : exit
Exits the program.
Format: exit
Saving the data
Address book data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
Changing the save location
Address book data are saved in a file called addressbook.txt
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.txt
The file name must end in When running the program inside IntelliJ, you can set command line parameters before running the program. |