Skip to content
Permalink
Browse files
a bit more space for help description in the cli
  • Loading branch information
Romain Manni-Bucau committed Dec 2, 2015
1 parent a519144 commit 2d63aa14b5e56ffee35fd9273a9e71bea8738d23
Showing 2 changed files with 3 additions and 3 deletions.
@@ -246,7 +246,7 @@ public Runnable decorate(final Runnable task) {
}

private static void printHelp(final Command command, final Options options) {
new HelpFormatter().printHelp(command.name(), command.description(), options, null, true);
new HelpFormatter().printHelp(command.name(), '\n' + command.description() + "\n\n", options, null, true);
}

private static Options buildOptions(final Class<? extends Runnable> cmd, Map<String, Field> fields) {
@@ -63,8 +63,8 @@ public void argHelp() {
public void helpCommand() {
main(new String[] { "help", "evict" }); // using a simple command to avoid a big block for nothing
assertEquals(
"usage: evict [-until <arg>]\n" +
"remove old data, uses embedded configuration (no JAXRS support yet)\n" +
"usage: evict [-until <arg>]\n\n" +
"remove old data, uses embedded configuration (no JAXRS support yet)\n\n" +
" -until <arg> date until when the eviction will occur (excluded),\n" +
" YYYYMMDD format\n", stdout.getLog().replace(System.getProperty("line.separator"), "\n"));
}

0 comments on commit 2d63aa1

Please sign in to comment.