From 2bbcb4d6bb9d102c3d32302127a102104128d42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 12 Nov 2022 17:14:46 +0100 Subject: [PATCH] waforthc: Support custom C flags --- src/waforthc/waforthc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/waforthc/waforthc.cpp b/src/waforthc/waforthc.cpp index fdc16c5..04cba8b 100644 --- a/src/waforthc/waforthc.cpp +++ b/src/waforthc/waforthc.cpp @@ -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();