MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getArgumentValue

Function getArgumentValue

tools/benchmark/main.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace lbug::common;
7
8static std::string getArgumentValue(const std::string& arg) {
9 auto splits = StringUtils::split(arg, "=");
10 if (splits.size() != 2) {
11 throw std::invalid_argument("Expect value associate with " + splits[0]);
12 }
13 return splits[1];
14}
15
16int main(int argc, char** argv) {
17 std::string datasetPath;

Callers 1

mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected