Skip to content
Snippets Groups Projects
Commit 584ea9d5 authored by Oliver Heidmann's avatar Oliver Heidmann Committed by Uwe Schulzweida
Browse files

cli argument parsing now makes use of stop function, stops arg parsing when...

cli argument parsing now makes use of stop function, stops arg parsing when the first registered operator is found
parent 933aea94
No related branches found
No related tags found
2 merge requests!326convert_to_number not called string_to_number, fixed usage of .fail enabling...,!322Fixing and cleaning up handling of operator argument sourrounding the use of scientific notations
......@@ -382,7 +382,8 @@ main(int argc, char *argv[])
setup_options();
setup_cli_options();
auto CDO_optind = CLIOptions::parse(std::vector<std::string>(argv, argv + argc));
auto CDO_optind = CLIOptions::parse(std::vector<std::string>(argv, argv + argc),
[](const std::string arg) { return Factory::exists(arg); });
if (CDO_optind == CLIOptions::ABORT_REQUESTED) exit(EXIT_FAILURE);
if (CDO_optind == CLIOptions::EXIT_REQUESTED) exit(EXIT_SUCCESS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment