-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[W5][T12-1] Zhang Shaoqian #175
base: master
Are you sure you want to change the base?
Conversation
Useful changes. The printing is more clear now. The coding style is also coherent with the rest of the files. |
It looks really nice now! Do you think it might be useful to have a function which takes in a number and returns the number of indentations accordingly? |
Good enhancement! This will help in printing clearly. Maybe we can use this to create user profile later on and print the user details in a proper profile number. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
/** | ||
* Clears the address book. | ||
*/ | ||
public class ClearCommand extends Command { | ||
|
||
public static final String COMMAND_WORD = "clear"; | ||
public static final String MESSAGE_USAGE = "Clears address book permanently.\n" | ||
+ "Example: " + COMMAND_WORD; | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Clears address book permanently.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is a (intended?) bug actually. Good job spotting it!
Pretty printing in the
help
commandBefore, the
help
command prints everything without proper indentation so it looks very messy. Now indentations are added for the "parameter" and "example" lines.