| 1627 | }; |
| 1628 | |
| 1629 | struct Option |
| 1630 | { |
| 1631 | Option |
| 1632 | ( |
| 1633 | std::string opts, |
| 1634 | std::string desc, |
| 1635 | std::shared_ptr<const Value> value = ::cxxopts::value<bool>(), |
| 1636 | std::string arg_help = "" |
| 1637 | ) |
| 1638 | : opts_(std::move(opts)) |
| 1639 | , desc_(std::move(desc)) |
| 1640 | , value_(std::move(value)) |
| 1641 | , arg_help_(std::move(arg_help)) |
| 1642 | { |
| 1643 | } |
| 1644 | |
| 1645 | std::string opts_; |
| 1646 | std::string desc_; |
| 1647 | std::shared_ptr<const Value> value_; |
| 1648 | std::string arg_help_; |
| 1649 | }; |
| 1650 | |
| 1651 | using OptionMap = std::unordered_map<std::string, std::shared_ptr<OptionDetails>>; |
| 1652 | using PositionalList = std::vector<std::string>; |
nothing calls this directly
no outgoing calls
no test coverage detected