You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by ma...@apache.org on 2019/07/16 20:29:15 UTC

[gora] 01/02: Fix goracompiler cli output for --help

This is an automated email from the ASF dual-hosted git repository.

madhawa pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gora.git

commit 05bf5e43e4b12a786fbc45488931b7b8c908d72c
Author: LahiruJayasekara <ml...@gmail.com>
AuthorDate: Thu May 23 07:38:15 2019 +0530

    Fix goracompiler cli output for --help
---
 .../apache/gora/compiler/cli/GoraCompilerCLI.java  | 26 +++++++++++++---------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java b/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
index ca4b0ee..8f6e455 100644
--- a/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
+++ b/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
@@ -103,16 +103,20 @@ public class GoraCompilerCLI {
   }
 
   private static void printHelp() {
-    LOG.info("Usage: gora-compiler ( -h | --help ) | (<input> [<input>...] <output> [-license <id>])");
-    LOG.error("License header options include;\n" +
-              "\t\t  ASLv2   (Apache Software License v2.0) \n" +
-              "\t\t  AGPLv3  (GNU Affero General Public License) \n" +
-              "\t\t  CDDLv1  (Common Development and Distribution License v1.0) \n" +
-              "\t\t  FDLv13  (GNU Free Documentation License v1.3) \n" +
-              "\t\t  GPLv1   (GNU General Public License v1.0) \n" +
-              "\t\t  GPLv2   (GNU General Public License v2.0) \n" +
-              "\t\t  GPLv3   (GNU General Public License v3.0) \n" +
-              "\t\t  LGPLv21 (GNU Lesser General Public License v2.1) \n" +
-              "\t\t  LGPLv3  (GNU Lesser General Public License v2.1)");
+    LOG.info("Usage: GoraCompiler <schema file> <output dir> [-license <id>]\n" +
+            "   <schema file>     - individual avsc file to be compiled or a directory path containing avsc files\n" +
+            "   <output dir>      - output directory for generated Java files\n" +
+            "   [-license <id>]   - the preferred license header to add to the generated Java file.\n" +
+            "Current License header options include;\n" +
+            "\t\t  ASLv2   (Apache Software License v2.0) \n" +
+            "\t\t  AGPLv3  (GNU Affero General Public License) \n" +
+            "\t\t  CDDLv1  (Common Development and Distribution License v1.0) \n" +
+            "\t\t  FDLv13  (GNU Free Documentation License v1.3) \n" +
+            "\t\t  GPLv1   (GNU General Public License v1.0) \n" +
+            "\t\t  GPLv2   (GNU General Public License v2.0) \n" +
+            "\t\t  GPLv3   (GNU General Public License v3.0) \n" +
+            "\t\t  LGPLv21 (GNU Lesser General Public License v2.1) \n" +
+            "\t\t  LGPLv3  (GNU Lesser General Public License v2.1)"
+    );
   }
 }