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

Function ParseCommandLine

tools/converter/source/utils/command.cc:38–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool ParseCommandLine(int argc, char* argv[]) {
39 gflags::ParseCommandLineNonHelpFlags(&argc, &argv, true);
40 if (FLAGS_h) {
41 ShowHelpMessage();
42 return false;
43 }
44 if (FLAGS_mp.empty()) {
45 ShowModelPathMessage();
46 ShowHelpMessage();
47 return false;
48 }
49 if (FLAGS_od.empty()) {
50 ShowOnnxPathMessage();
51 ShowHelpMessage();
52 return false;
53 }
54 // TODO
55 return true;
56}
57} // namespace TNN_CONVERTER

Callers 1

RunFunction · 0.85

Calls 4

ShowHelpMessageFunction · 0.85
ShowModelPathMessageFunction · 0.85
ShowOnnxPathMessageFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected