waforthc: Support custom C flags

This commit is contained in:
Remko Tronçon 2022-11-12 17:14:46 +01:00
parent 9dca4fb083
commit 2bbcb4d6bb

View file

@ -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();