Commit e79db5c5 authored by Dominik Charousset's avatar Dominik Charousset

fancier pattern matching

parent 43bfc440
...@@ -387,7 +387,7 @@ int main(int argc, char** argv) { ...@@ -387,7 +387,7 @@ int main(int argc, char** argv) {
auto first = argv + 1; auto first = argv + 1;
auto last = argv + argc; auto last = argv + argc;
match(*first) ( match(*first) (
on<string>().when(_x1.in({"-h", "--help"})) >> []() { (on("-h") || on("--help")) >> []() {
usage(); usage();
}, },
on("mode=server") >> [=]() { on("mode=server") >> [=]() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment