Definition at line 404 of file CmdOptions.h. References mOptAlt, mOptDefVal, mOptHideUsage, mOptNameL, mOptNameS, mOptParName, and NrOpt(). Referenced by ParseArgs(). 00405 { 00406 std::cout << std::endl; 00407 std::cout << "Usage : " << progName << " " << usageStr << std::endl; 00408 std::cout << std::endl; 00409 std::cout << " Options:" << std::endl; 00410 std::cout << " -h --help" << std::endl; 00411 std::cout << " --version" << std::endl; 00412 for (int i=0 ; i<NrOpt() ; i++) 00413 { 00414 if (mOptParName[i] == "read from ini file") 00415 continue; 00416 if (mOptHideUsage[i]) 00417 continue; 00418 if (mOptNameS[i]) 00419 std::cout << " -" << mOptNameS[i]; 00420 else 00421 std::cout << " "; 00422 std::cout << " --" << mOptNameL[i] << " " << mOptParName[i]; 00423 if (! mOptDefVal[i].empty()) 00424 std::cout << " [default: " << mOptDefVal[i] <<"]"; 00425 if (! mOptAlt[i].empty()) 00426 std::cout << " [" << mOptParName[i] << " in " << mOptAlt[i] 00427 << "]"; 00428 std::cout << std::endl; 00429 } 00430 }
Here is the call graph for this function:
|