X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcli%2Ftestgetsetcommand.cpp;h=007cb95968670fddc3bc6f8c09a88267f01cbc67;hb=aad0a0b5f51c2abd855aba0a9cb8e99ac5023600;hp=81bdd1c4448a5f2e56425cb854ad3d85821a2bc0;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/src/cli/testgetsetcommand.cpp b/src/cli/testgetsetcommand.cpp index 81bdd1c..007cb95 100644 --- a/src/cli/testgetsetcommand.cpp +++ b/src/cli/testgetsetcommand.cpp @@ -93,7 +93,7 @@ namespace { auto keyCount(map["key-count"].as()); const auto timeout(map["timeout"].as()); - auto ns("sdltoolns"); + auto ns(map["ns"].as()); setTimeout(timeout); auto sdl(createSyncStorage(out)); if (sdl == nullptr) @@ -141,4 +141,5 @@ AUTO_REGISTER_COMMAND(std::bind(TestGetSetCommand, std::placeholders::_1, std::p "Check that basic SDL api commands (set/get) works normally and measure latency.", CommandMap::Category::UTIL, 30010, ("key-count", boost::program_options::value()->default_value(10), "Number of write/read keys") - ("timeout", boost::program_options::value()->default_value(0), "Timeout (in seconds), Default is no timeout")); + ("timeout", boost::program_options::value()->default_value(0), "Timeout (in seconds), Default is no timeout") + ("ns", boost::program_options::value()->default_value("sdltoolns"), "namespace to use"));