You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my example code is follow:
’‘’
cmdline::parser parser;
parser.add("loglevel", 'l', "0-critical, 1-err, 2-warn, 3-info, 4-debug, 5-trace", false, 1);
parser.parse_check("--loglevel");
auto t = parser.get("loglevel");
std::cout << "level:" << t << std::endl; // when set loglevel 5, but it always default value effect
auto log_level = (LogLevel)t;
std::cout << "log level: " << log_level <<std::endl;
InitLog(log_level);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
‘’‘
I built a bin as "test", when I execute the command "./test --gtest_filter=*.test1 --loglevel 5",
but the loglevel is always set to be default value 1
please check this problem, thx
The text was updated successfully, but these errors were encountered:
my example code is follow:
’‘’
cmdline::parser parser;
parser.add("loglevel", 'l', "0-critical, 1-err, 2-warn, 3-info, 4-debug, 5-trace", false, 1);
parser.parse_check("--loglevel");
auto t = parser.get("loglevel");
std::cout << "level:" << t << std::endl; // when set loglevel 5, but it always default value effect
auto log_level = (LogLevel)t;
std::cout << "log level: " << log_level <<std::endl;
InitLog(log_level);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
‘’‘
I built a bin as "test", when I execute the command "./test --gtest_filter=*.test1 --loglevel 5",
![image](https://user-images.githubusercontent.com/7481343/146764936-71871706-58a9-44db-954d-93de209cc192.png)
but the loglevel is always set to be default value 1
please check this problem, thx
The text was updated successfully, but these errors were encountered: