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

Function extras

docopt.cpp:558–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558static void extras(bool help, bool version, PatternList const& options) {
559 if (help && isOptionSet(options, "-h", "--help")) {
560 throw DocoptExitHelp();
561 }
562
563 if (version && isOptionSet(options, "--version")) {
564 throw DocoptExitVersion();
565 }
566}
567
568// Parse the doc string and generate the Pattern tree
569static std::pair<Required, std::vector<Option>> create_pattern_tree(std::string const& doc)

Callers 1

docopt_parseMethod · 0.85

Calls 3

isOptionSetFunction · 0.85
DocoptExitHelpClass · 0.85
DocoptExitVersionClass · 0.85

Tested by

no test coverage detected