a bit more space for help description in the cli
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 @@
}
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) {
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 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"));
}