mirror of
https://github.com/remko/waforth
synced 2024-12-26 09:59:09 +01:00
waforthc: Support custom C flags
This commit is contained in:
parent
9dca4fb083
commit
2bbcb4d6bb
1 changed files with 5 additions and 5 deletions
|
@ -375,12 +375,12 @@ int main(int argc, char *argv[]) {
|
|||
bpo::positional_options_description p;
|
||||
p.add("input", 1);
|
||||
bpo::variables_map vm;
|
||||
bpo::store(bpo::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
|
||||
if (vm.count("help")) {
|
||||
std::cout << desc << "\n";
|
||||
return 0;
|
||||
}
|
||||
try {
|
||||
bpo::store(bpo::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
|
||||
if (vm.count("help")) {
|
||||
std::cout << desc << "\n";
|
||||
return 0;
|
||||
}
|
||||
bpo::notify(vm);
|
||||
} catch (const bpo::error &e) {
|
||||
std::cout << e.what();
|
||||
|
|
Loading…
Reference in a new issue