30 const char* argv[5] = {};
33 argv[2] =
"--yak=123";
34 argv[3] =
"--walrus=456";
35 argv[4] =
"--vulture";
39 bool fErrorFlag =
false;
43 std::string strWalrus;
44 std::string strVulture;
45 std::string strAardvark;
50 parser.
AddOption(
"aardvark", 1, &strAardvark);
51 parser.
AddOption(
"vulture", 0, &strVulture);
52 parser.
AddOption(
"walrus", 1, &strWalrus);
#define ChkIf(expr, hrerror)
HRESULT ParseCommandLine(int argc, char **argv, int startindex, bool *fParseError)
HRESULT AddOption(const char *pszName, int has_arg, std::string *pStrResult)