Mercurial > hg > release > thermostat-0.15
changeset 236:e69fb1a3dbd9
Missing newline at end of help command
Reviewed-by: vanaltj
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-April/000841.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Mon, 16 Apr 2012 15:20:10 -0400 |
parents | fdda2e68edf2 |
children | 7711b0e95139 |
files | common/src/main/java/com/redhat/thermostat/cli/HelpCommand.java common/src/test/java/com/redhat/thermostat/cli/HelpCommandTest.java |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/common/src/main/java/com/redhat/thermostat/cli/HelpCommand.java Mon Apr 16 12:58:48 2012 -0400 +++ b/common/src/main/java/com/redhat/thermostat/cli/HelpCommand.java Mon Apr 16 15:20:10 2012 -0400 @@ -49,7 +49,7 @@ private static final String USAGE = "help [COMMAND]\n\n" + DESCRIPTION + "\n\n\t" + "With no arguments, print a list of commands with short help messages.\n\n\t" - + "Given a command, print help for that command."; + + "Given a command, print help for that command.\n"; @Override public void run(CommandContext ctx) {
--- a/common/src/test/java/com/redhat/thermostat/cli/HelpCommandTest.java Mon Apr 16 12:58:48 2012 -0400 +++ b/common/src/test/java/com/redhat/thermostat/cli/HelpCommandTest.java Mon Apr 16 15:20:10 2012 -0400 @@ -141,7 +141,7 @@ String expected = "help [COMMAND]\n\n" + "show help for a given command or help overview\n\n\t" + "With no arguments, print a list of commands with short help messages.\n\n\t" - + "Given a command, print help for that command."; + + "Given a command, print help for that command.\n"; assertEquals(expected, cmd.getUsage()); }