diff --git a/src/seedu/addressbook/AddressBook.java b/src/seedu/addressbook/AddressBook.java index 5a158b67..04a965e7 100644 --- a/src/seedu/addressbook/AddressBook.java +++ b/src/seedu/addressbook/AddressBook.java @@ -44,7 +44,7 @@ public class AddressBook { /** * Version info of the program. */ - private static final String VERSION = "AddessBook Level 1 - Version 1.0"; + private static final String VERSION = "AddressBook Level 1 - Version 1.0"; /** * A decorative prefix added to the beginning of lines printed by AddressBook @@ -1084,7 +1084,7 @@ private static boolean isPersonEmailValid(String email) { private static String getUsageInfoForAllCommands() { return getUsageInfoForAddCommand() + LS + getUsageInfoForFindCommand() + LS - + getUsageInfoForViewCommand() + LS + + getUsageInfoForListCommand() + LS + getUsageInfoForDeleteCommand() + LS + getUsageInfoForClearCommand() + LS + getUsageInfoForExitCommand() + LS @@ -1118,8 +1118,8 @@ private static String getUsageInfoForClearCommand() { + String.format(MESSAGE_COMMAND_HELP_EXAMPLE, COMMAND_CLEAR_EXAMPLE) + LS; } - /** Returns the string for showing 'view' command usage instruction */ - private static String getUsageInfoForViewCommand() { + /** Returns the string for showing 'list' command usage instruction */ + private static String getUsageInfoForListCommand() { return String.format(MESSAGE_COMMAND_HELP, COMMAND_LIST_WORD, COMMAND_LIST_DESC) + LS + String.format(MESSAGE_COMMAND_HELP_EXAMPLE, COMMAND_LIST_EXAMPLE) + LS; }