Repository: incubator-batchee Updated Branches: refs/heads/master a5191447f -> 2d63aa14b
a bit more space for help description in the cli Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/2d63aa14 Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/2d63aa14 Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/2d63aa14 Branch: refs/heads/master Commit: 2d63aa14b5e56ffee35fd9273a9e71bea8738d23 Parents: a519144 Author: Romain Manni-Bucau <[email protected]> Authored: Wed Dec 2 16:21:17 2015 +0100 Committer: Romain Manni-Bucau <[email protected]> Committed: Wed Dec 2 16:21:17 2015 +0100 ---------------------------------------------------------------------- tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java | 2 +- tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/2d63aa14/tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java ---------------------------------------------------------------------- diff --git a/tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java b/tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java index eec4d69..55f084b 100644 --- a/tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java +++ b/tools/cli/src/main/java/org/apache/batchee/cli/BatchEECLI.java @@ -246,7 +246,7 @@ public class BatchEECLI { } 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) { http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/2d63aa14/tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java ---------------------------------------------------------------------- diff --git a/tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java b/tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java index c3680ef..6139a09 100644 --- a/tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java +++ b/tools/cli/src/test/java/org/apache/batchee/cli/MainTest.java @@ -63,8 +63,8 @@ public class MainTest { 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")); }
