svn commit: r1744537 - /ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1744537 - /ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java

Taher Alkhateeb
Author: taher
Date: Thu May 19 08:54:03 2016
New Revision: 1744537

URL: http://svn.apache.org/viewvc?rev=1744537&view=rev
Log:
improve the --test command documentation and widen commons-cli screen OFBIZ-6783

as suggested by Jacques, the commons-cli screen is widened to be
80 characters instead of the default 74 characters. Also the test
command for java -jar ofbiz.jar is improved in terms of documentation
so that it does not break off into a newline which was confusing

Modified:
    ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java

Modified: ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java?rev=1744537&r1=1744536&r2=1744537&view=diff
==============================================================================
--- ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java (original)
+++ ofbiz/trunk/framework/start/src/org/ofbiz/base/start/StartupCommandUtil.java Thu May 19 08:54:03 2016
@@ -123,7 +123,9 @@ public final class StartupCommandUtil {
                     + System.lineSeparator()
                     + "--test component=base --test case=somecase"
                     + System.lineSeparator()
-                    + "--test component=base --test suitename=somesuite")
+                    + "or"
+                    + System.lineSeparator()
+                    + "--test component=base --test suitename=xyz")
             .numberOfArgs(2)
             .valueSeparator('=')
             .optionalArg(true)
@@ -166,7 +168,7 @@ public final class StartupCommandUtil {
         HelpFormatter formatter = new HelpFormatter();
         formatter.printHelp(
                 new PrintWriter(printStream, true),
-                HelpFormatter.DEFAULT_WIDTH,
+                HelpFormatter.DEFAULT_WIDTH + 6,
                 "java -jar ofbiz.jar",
                 System.lineSeparator() + "Executes OFBiz command e.g. start, shutdown, check status, etc",
                 getOfbizStartupOptions(),