| 556 | } |
| 557 | |
| 558 | static 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 |
| 569 | static std::pair<Required, std::vector<Option>> create_pattern_tree(std::string const& doc) |
no test coverage detected