diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-06-03 19:31:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-06-04 12:39:05 +0300 |
commit | 7fa296d5b67a345c708b762f01cec53fc4c00d99 (patch) | |
tree | 0c140ec3de3b4584a2fb47c2485d4d79c1979f7c /load/types-parsers.cxx | |
parent | a66efed44af2f9bc917d265ca7640ded40683f05 (diff) |
Add --ignore-unresolv-cond option and rename --ignore-unresolved-tests to --ignore-unresolv-tests for brep-load
Diffstat (limited to 'load/types-parsers.cxx')
-rw-r--r-- | load/types-parsers.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/load/types-parsers.cxx b/load/types-parsers.cxx index 4c4ea9d..a18330d 100644 --- a/load/types-parsers.cxx +++ b/load/types-parsers.cxx @@ -39,4 +39,22 @@ namespace cli xs = true; parse_path (x, s); } + + void parser<ignore_unresolved_conditional_dependencies>:: + parse (ignore_unresolved_conditional_dependencies& x, bool& xs, scanner& s) + { + xs = true; + const char* o (s.next ()); + + if (!s.more ()) + throw missing_value (o); + + const string v (s.next ()); + if (v == "all") + x = ignore_unresolved_conditional_dependencies::all; + else if (v == "tests") + x = ignore_unresolved_conditional_dependencies::tests; + else + throw invalid_value (o, v); + } } |