Skip to content

Commit

Permalink
Merge pull request AY2425S1-CS2103-F09-1#331 from cth06-Github/v1.6-l…
Browse files Browse the repository at this point in the history
…istHelpMessage-branch

Edit help message display for help list
  • Loading branch information
cth06-Github authored Nov 11, 2024
2 parents 4416ba6 + 91f7edd commit f2501aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/main/java/seedu/address/logic/commands/HelpCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ public class HelpCommand extends Command {
+ MESSAGE_REFER_USERGUIDE_DETAIL_HELP;;
public static final String HELP_LIST = ListCommand.MESSAGE_FUNCTION + LINE_BREAK
+ COMMAND_FORMAT_PREAMBLE + WHITESPACE + ListCommand.MESSAGE_COMMAND_FORMAT + LINE_BREAK
+ "No other fields is required for the command but alternatives are allowed as follows:" + LINE_BREAK
+ "Alternative One:" + WHITESPACE + ListCommand.MESSAGE_COMMAND_FORMAT_ALT_VERSION_ONE + LINE_BREAK
+ "Alternative Two:" + WHITESPACE + ListCommand.MESSAGE_COMMAND_FORMAT_ALT_VERSION_TWO + LINE_BREAK
+ "Alternative Three:" + WHITESPACE + ListCommand.MESSAGE_COMMAND_FORMAT_ALT_VERSION_THREE + LINE_BREAK
+ MESSAGE_REFER_USERGUIDE_DETAIL_HELP;
public static final String HELP_CLEAR = ClearCommand.MESSAGE_FUNCTION + LINE_BREAK
+ COMMAND_FORMAT_PREAMBLE + WHITESPACE + ClearCommand.MESSAGE_COMMAND_FORMAT;
Expand Down
9 changes: 2 additions & 7 deletions src/main/java/seedu/address/logic/commands/ListCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ public class ListCommand extends Command {
public static final String COMMAND_WORD = "list";
public static final String MESSAGE_SUCCESS = "Listed all contacts";
public static final String MESSAGE_FUNCTION = "List is to show all contacts, as opposed to find command.";
public static final String MESSAGE_COMMAND_FORMAT = styleCommand(COMMAND_WORD);
public static final String MESSAGE_COMMAND_FORMAT_ALT_VERSION_ONE =
styleCommand(COMMAND_WORD + WHITESPACE + "all");
public static final String MESSAGE_COMMAND_FORMAT_ALT_VERSION_TWO =
styleCommand(COMMAND_WORD + WHITESPACE + "contacts");
public static final String MESSAGE_COMMAND_FORMAT_ALT_VERSION_THREE =
styleCommand(COMMAND_WORD + WHITESPACE + "all contacts");
public static final String MESSAGE_COMMAND_FORMAT = styleCommand(
COMMAND_WORD + WHITESPACE + "[all]... [contacts]...");

@Override
public CommandResult execute(Model model) {
Expand Down

0 comments on commit f2501aa

Please sign in to comment.