Merge pull request #45 from lichray/no-macro

Remove the undocumented PARSE_ARGS macro
This commit is contained in:
Pranav Srinivas Kumar 2019-11-13 08:35:03 -06:00 committed by GitHub
commit f889195b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,13 +527,4 @@ private:
std::map<std::string, std::shared_ptr<Argument>> mArgumentMap; std::map<std::string, std::shared_ptr<Argument>> mArgumentMap;
}; };
#define PARSE_ARGS(parser, argc, argv) \
try { \
parser.parse_args(argc, argv); \
} catch (const std::runtime_error &err) { \
std::cout << err.what() << std::endl; \
parser.print_help(); \
exit(0); \
}
} // namespace argparse } // namespace argparse