MCPcopy Create free account
hub / github.com/Tencent/TNN / ParseAndCheckCommandLine

Function ParseAndCheckCommandLine

tools/model_check/main.cc:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool ParseAndCheckCommandLine(int argc, char* argv[]) {
152 gflags::ParseCommandLineNonHelpFlags(&argc, &argv, true);
153 if (FLAGS_h) {
154 ShowUsage();
155 return false;
156 }
157
158 if (FLAGS_p.empty() || FLAGS_m.empty() || FLAGS_d.empty()) {
159 printf("Parameter -p/-m/-d is not set \n");
160 ShowUsage();
161 return false;
162 }
163
164 return true;
165}
166
167int main(int argc, char* argv[]) {
168 // parse command line params

Callers 1

mainFunction · 0.70

Calls 2

ShowUsageFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected