Added some debug traces
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@410 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
@@ -106,6 +106,7 @@ void showUsage()
|
||||
" without saving modified parameters on closing.\n"
|
||||
" --scene \"path\" Path to a scene image file.\n"
|
||||
" --debug Show debug log.\n"
|
||||
" --debug-time Show debug log with time.\n"
|
||||
" --params Show all parameters.\n"
|
||||
" --defaults Use default parameters (--config is ignored).\n"
|
||||
" --My/Parameter \"value\" Set find-Object's parameter (look --params for parameters' name).\n"
|
||||
@@ -250,6 +251,14 @@ int main(int argc, char* argv[])
|
||||
ULogger::setLevel(ULogger::kDebug);
|
||||
continue;
|
||||
}
|
||||
if(strcmp(argv[i], "-debug-time") == 0 ||
|
||||
strcmp(argv[i], "--debug-time") == 0)
|
||||
{
|
||||
ULogger::setPrintWhere(true);
|
||||
ULogger::setLevel(ULogger::kDebug);
|
||||
ULogger::setPrintTime(true);
|
||||
continue;
|
||||
}
|
||||
if(strcmp(argv[i], "-help") == 0 ||
|
||||
strcmp(argv[i], "--help") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user