Przeglądaj źródła

Merge pull request #6430 from rpastrana/HPCC-12155-various-DESDL-issues

HPCC-12155 Add --help option

Reviewed-By: Russ Whitehead <william.whitehead@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 lat temu
rodzic
commit
3eebf7195d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tools/esdlcmd-xml/main.cpp

+ 2 - 2
tools/esdlcmd-xml/main.cpp

@@ -34,7 +34,7 @@ void usage(const char* programName)
     printf("Output:       filename.xml\n");
     printf("Output:       filename.xml\n");
 
 
     puts("Available options:");
     puts("Available options:");
-    puts(" -?/-h: show this usage page");
+    puts(" -?/-h/--help: show this usage page");
     exit(1);
     exit(1);
 }
 }
 
 
@@ -51,7 +51,7 @@ void parseCommandLine(int argc, char* argv[])
     {
     {
         if (*argv[i]=='-')
         if (*argv[i]=='-')
         {
         {
-            if (stricmp(argv[i], "-?")==0 || stricmp(argv[i], "-h")==0)
+            if (stricmp(argv[i], "-?")==0 || stricmp(argv[i], "-h")==0 || stricmp(argv[i], "--help")==0)
                 usage(argv[0]);
                 usage(argv[0]);
 
 
             else
             else