MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / OptionsAliasParser

Class OptionsAliasParser

src/Client/ClientApplicationBaseParser.h:13–25  ·  view source on GitHub ↗

* This functor is used to parse command line arguments and replace dashes with underscores, * allowing options to be specified using either dashes or underscores. */

Source from the content-addressed store, hash-verified

11 * allowing options to be specified using either dashes or underscores.
12 */
13class OptionsAliasParser
14{
15public:
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
23private:
24 std::unordered_set<std::string> options_names;
25};
26
27}

Callers 2

parseAndCheckOptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected