Refactor CLI options and output message (#1142)
authorРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Thu, 23 Aug 2018 15:38:10 +0000 (18:38 +0300)
committerSergey Vostokov/AI Tools Lab /SRR/Staff Engineer/삼성전자 <s.vostokov@samsung.com>
Thu, 23 Aug 2018 15:38:10 +0000 (18:38 +0300)
-  remove redundant option
-  correct output message in usage method

Signed-off-by: Roman Rusyaev <r.rusyaev@samsung.com>
contrib/nnc/README.md
contrib/nnc/include/Options.h
contrib/nnc/src/Options.cpp
contrib/nnc/support/src/CommandLine.cpp

index fe5020f..96bb066 100644 (file)
@@ -14,7 +14,6 @@ nnc OPTIONS
 ### OPTIONS
 
         --help, -h            -    print usage and exit
-        --plugins-verbose     -    verbose printing when plugins will be being searched
         --debug               -    turn debugging on (optional: provide filename)
         --debug-area          -    if specified, debug code will be executed only in given areas
         --caffe               -    treat input file as Caffe model
index e1f3486..761f139 100644 (file)
@@ -14,7 +14,6 @@ namespace clopt
 /**
  * Options for compiler driver
  */
-extern Option<bool> pluginVerbose;  // print additional info about plugins
 extern Option<bool> caffeFrontend;  // frontend for CAFFE AI framework
 extern Option<bool> tflFrontend;    // frontend for TensorFlow Lite AI framework
 
index 91614a2..b7f7404 100644 (file)
@@ -17,11 +17,6 @@ Option<bool> Help(optname("--help, -h"),
                   overview("print usage and exit"),
                   false,
                   optional(true));
-
-Option<bool> pluginVerbose(optname("--plugins-verbose"),
-                           overview("verbose printing when plugins will be being searched"),
-                           false,
-                           optional(true));
 Option<std::string> debugMode(optname("--debug"),
                                overview("turn debugging on (optional: provide filename)"),
                                "-", // when option is not passed to command line
index 48dcf71..56cf315 100644 (file)
@@ -108,7 +108,7 @@ CommandLine *CommandLine::getParser()
     std::cerr << msg << "\n";
   }
 
-  std::cerr << "Usage: " << _prog_name << ": [OPTIONS]...\n";
+  std::cerr << "Usage: " << _prog_name << " OPTIONS\n";
   std::cerr << "Available OPTIONS" << std::endl;
 
   // determine max length