diff --git a/src/main/java/seedu/nuscents/ui/Ui.java b/src/main/java/seedu/nuscents/ui/Ui.java index a086a5ef68..b8e591ddc4 100644 --- a/src/main/java/seedu/nuscents/ui/Ui.java +++ b/src/main/java/seedu/nuscents/ui/Ui.java @@ -30,6 +30,7 @@ public static void showWelcomeMessage() { System.out.println("Hello from\n" + LOGO); System.out.println(LINE); System.out.println("What can I do for you?"); + System.out.println("Hint: To view a list of all possible commands, please enter 'help'."); System.out.println(LINE); } @@ -89,17 +90,15 @@ public static void showReadDataError() { public static void showHelpMenu() { System.out.println(LINE); - System.out.println("- `list` :\n Shows a list of all tasks.\n" - + "- `todo DESCRIPTION` :\n Adds a todo to the current list of tasks.\n" - + "- `deadline DESCRIPTION /by DATETIME` :\n Adds a deadline to the current list of tasks.\n" - + "- `event DESCRIPTION /from START_DATETIME /to END_DATETIME` :\n" - + " Adds an event to the current list of tasks.\n" - + "- `find KEYWORD` :\n Finds tasks whose description contain the given keyword.\n" - + "- `delete INDEX` :\n Deletes the specified task from the list of tasks.\n" - + "- `mark INDEX` :\n Marks the specified task from the list of tasks as done.\n" - + "- `unmark INDEX` :\n Marks the specified task from the list of tasks as not done.\n" - + "- `bye` :\n Exits the program."); + System.out.println("- `list` :\n Show a list of all entries.\n" + + "- `allowance /amt AMOUNT /date DATE /desc DESCRIPTION " + + "[/note ADDITIONAL_INFORMATION]` :\n Add an allowance.\n" + + "- `expense /amt AMOUNT /date DATE /desc DESCRIPTION " + + "[/note ADDITIONAL_INFORMATION]` :\n Add an expense.\n" + + "- `delete ENTRY_NUMBER` :\n Delete an entry.\n" + + "- `view ENTRY_NUMBER` :\n View an entry detail.\n" + + "- `exit` :\n Exits the program."); System.out.println(LINE); } -} +} diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 16ca89347d..a12602d885 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -11,6 +11,7 @@ Hello from ------------------------------------------------------------------------------- What can I do for you? +Hint: To view a list of all possible commands, please enter 'help'. ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- OOPS!!! I'm sorry, but I don't know what that means :-( @@ -18,3 +19,17 @@ OOPS!!! I'm sorry, but I don't know what that means :-( ------------------------------------------------------------------------------- Thank you for using NUScents. Hope to see you again soon! ------------------------------------------------------------------------------- +------------------------------------------------------------------------------- +- `list` : + Show a list of all entries. +- `allowance /amt AMOUNT /date DATE /desc DESCRIPTION [/note ADDITIONAL_INFORMATION]` : + Add an allowance. +- `expense /amt AMOUNT /date DATE /desc DESCRIPTION [/note ADDITIONAL_INFORMATION]` : + Add an expense. +- `delete ENTRY_NUMBER` : + Delete an entry. +- `view ENTRY_NUMBER` : + View an entry detail. +- `exit` : + Exit the program. +------------------------------------------------------------------------------- diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index 1eae52f8cd..e04742e750 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -1,2 +1,3 @@ James -exit \ No newline at end of file +exit +help \ No newline at end of file