Skip to content

Commit

Permalink
UG fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AL-ZT committed Apr 8, 2024
1 parent 2629160 commit 1d072f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ Furthermore, certain edits can cause the AddressBook to behave in unexpected way
Team size: 4

1. Improve readability of command history list: As of v1.3, the output of each command in the history is verbose, and introduces a lot of user-unfriendly code to the user. We plan to show only the command output that was typed by the user.
2. Comprehensiveness of error messages: Error messages for list indexes <= 0 are inconsistent with positive indexes, even though the index is compliant with the command format. Examples of commands requiring indexes are `delete`, `edit`, `history`. We plan to ensure consistency with the error message so long as it is an index value.

--------------------------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class HistoryCommand extends Command {
public static final String COMMAND_WORD = "history";

public static final String MESSAGE_USAGE = COMMAND_WORD
+ ": Lists command history. Runs the command when index is specified. \n"
+ ": Lists command history. Runs the command when INDEX is specified. \n"
+ "Parameters: INDEX (must be a positive integer)\n"
+ "Example: " + COMMAND_WORD + " 1";
+ "Example: " + COMMAND_WORD + ", " + COMMAND_WORD + " 1";

public static final String MESSAGE_HISTORY_SUCCESS = "Command History listed.";

Expand Down

0 comments on commit 1d072f8

Please sign in to comment.