MCPcopy Create free account
hub / github.com/docopt/docopt.cpp / main

Function main

examples/naval_fate.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22)";
23
24int main(int argc, const char** argv)
25{
26 std::map<std::string, docopt::value> args = docopt::docopt(USAGE,
27 { argv + 1, argv + argc },
28 true, // show help if requested
29 "Naval Fate 2.0"); // version string
30
31 for(auto const& arg : args) {
32 std::cout << arg.first << ": " << arg.second << std::endl;
33 }
34
35 return 0;
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected