mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Merge pull request #45 from lichray/no-macro
Remove the undocumented PARSE_ARGS macro
This commit is contained in:
commit
f889195b95
@ -527,13 +527,4 @@ private:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user