From 2469e9c61ae61f9333034d4d54896733ee2554f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=85=D0=B0?= =?utf8?q?=D0=B9=D0=BB=D0=BE=D0=B2=D0=B8=D1=87=20=D0=A0=D1=83=D1=81=D1=8F?= =?utf8?q?=D0=B5=D0=B2/AI=20Tools=20Lab=20/SRR/Staff=20Engineer/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 23 Aug 2018 18:38:10 +0300 Subject: [PATCH] Refactor CLI options and output message (#1142) - remove redundant option - correct output message in usage method Signed-off-by: Roman Rusyaev --- contrib/nnc/README.md | 1 - contrib/nnc/include/Options.h | 1 - contrib/nnc/src/Options.cpp | 5 ----- contrib/nnc/support/src/CommandLine.cpp | 2 +- 4 files changed, 1 insertion(+), 8 deletions(-) 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 -- 2.7.4