From: Роман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 Date: Thu, 23 Aug 2018 15:38:10 +0000 (+0300) Subject: Refactor CLI options and output message (#1142) X-Git-Tag: nncc_backup~2067 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2469e9c61ae61f9333034d4d54896733ee2554f5;p=platform%2Fcore%2Fml%2Fnnfw.git Refactor CLI options and output message (#1142) - remove redundant option - correct output message in usage method Signed-off-by: Roman Rusyaev --- diff --git a/contrib/nnc/README.md b/contrib/nnc/README.md index fe5020f..96bb066 100644 --- a/contrib/nnc/README.md +++ b/contrib/nnc/README.md @@ -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 diff --git a/contrib/nnc/include/Options.h b/contrib/nnc/include/Options.h index e1f3486..761f139 100644 --- a/contrib/nnc/include/Options.h +++ b/contrib/nnc/include/Options.h @@ -14,7 +14,6 @@ namespace clopt /** * Options for compiler driver */ -extern Option pluginVerbose; // print additional info about plugins extern Option caffeFrontend; // frontend for CAFFE AI framework extern Option tflFrontend; // frontend for TensorFlow Lite AI framework diff --git a/contrib/nnc/src/Options.cpp b/contrib/nnc/src/Options.cpp index 91614a2..b7f7404 100644 --- a/contrib/nnc/src/Options.cpp +++ b/contrib/nnc/src/Options.cpp @@ -17,11 +17,6 @@ Option Help(optname("--help, -h"), overview("print usage and exit"), false, optional(true)); - -Option pluginVerbose(optname("--plugins-verbose"), - overview("verbose printing when plugins will be being searched"), - false, - optional(true)); Option debugMode(optname("--debug"), overview("turn debugging on (optional: provide filename)"), "-", // when option is not passed to command line diff --git a/contrib/nnc/support/src/CommandLine.cpp b/contrib/nnc/support/src/CommandLine.cpp index 48dcf71..56cf315 100644 --- a/contrib/nnc/support/src/CommandLine.cpp +++ b/contrib/nnc/support/src/CommandLine.cpp @@ -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