* This functor is used to parse command line arguments and replace dashes with underscores, * allowing options to be specified using either dashes or underscores. */
| 11 | * allowing options to be specified using either dashes or underscores. |
| 12 | */ |
| 13 | class OptionsAliasParser |
| 14 | { |
| 15 | public: |
| 16 | explicit OptionsAliasParser(const boost::program_options::options_description & options); |
| 17 | /* |
| 18 | * Parses arguments by replacing dashes with underscores, and matches the resulting name with known options |
| 19 | * Implements boost::program_options::ext_parser logic |
| 20 | */ |
| 21 | std::pair<std::string, std::string> operator()(const std::string & token) const; |
| 22 | |
| 23 | private: |
| 24 | std::unordered_set<std::string> options_names; |
| 25 | }; |
| 26 | |
| 27 | } |
no outgoing calls
no test coverage detected