Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[W5][T12-1] Zhang Shaoqian #175

wants to merge 3 commits into from

Conversation

nerrons
Copy link

@nerrons nerrons commented Feb 13, 2019

Pretty printing in the help command

Before, the help command prints everything without proper indentation so it looks very messy. Now indentations are added for the "parameter" and "example" lines.

@ZhangCX10032
Copy link

Useful changes. The printing is more clear now. The coding style is also coherent with the rest of the files.

@sreycodes
Copy link

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?

@Tejas2805
Copy link

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.

Copy link

@bqnguyen94 bqnguyen94 left a 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"

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants