- void Add(const std::string & shortName,
- const std::string & longName,
- ACTION * action,
- const std::string & description);
- void Add(const std::string & longName,
- ACTION * action,
- const std::string & description);
+ OPTION_BLOCK() {}
+ explicit OPTION_BLOCK(const std::string & description)
+ : m_description(description) {}
+
+ OPTION_BLOCK(OPTION_BLOCK&&) = default;
+ OPTION_BLOCK& operator=(OPTION_BLOCK&&) = default;
+
+ OPTION_BLOCK & Add(const std::string & shortName,
+ const std::string & longName,
+ std::unique_ptr<ACTION> action,
+ const std::string & description);
+ OPTION_BLOCK & Add(const std::string & longName,
+ std::unique_ptr<ACTION> action,
+ const std::string & description);