mirror of
https://github.com/remko/waforth
synced 2025-01-14 08:01:34 +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;
|
bpo::positional_options_description p;
|
||||||
p.add("input", 1);
|
p.add("input", 1);
|
||||||
bpo::variables_map vm;
|
bpo::variables_map vm;
|
||||||
|
try {
|
||||||
bpo::store(bpo::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
|
bpo::store(bpo::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
|
||||||
if (vm.count("help")) {
|
if (vm.count("help")) {
|
||||||
std::cout << desc << "\n";
|
std::cout << desc << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
bpo::notify(vm);
|
bpo::notify(vm);
|
||||||
} catch (const bpo::error &e) {
|
} catch (const bpo::error &e) {
|
||||||
std::cout << e.what();
|
std::cout << e.what();
|
||||||
|
|
Loading…
Reference in a new issue