refactored command line parser, fixed the docs

This commit is contained in:
Vadim Pisarevsky
2012-09-07 17:44:01 +04:00
parent b16b50d61b
commit 0598f33a85
3 changed files with 484 additions and 454 deletions

View File

@@ -58,15 +58,15 @@ The sample below demonstrates how to use CommandLineParser:
}
int N = parser.get<int>("N");
double fps = parser.get<double>parser("fps");
double fps = parser.get<double>("fps");
std::string path = parser.get<std::string>("path");
use_time_stamp = parserer.has("timestamp");
use_time_stamp = parser.has("timestamp");
std::string img1 = parser.get<string>(1);
std::string img2 = parser.get<string>(2);
std::string img1 = parser.get<string>(0);
std::string img2 = parser.get<string>(1);
int repeat = parser.get<int>(3);
int repeat = parser.get<int>(2);
if (!parser.check())
{