1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-07 23:33:52 +00:00

Fix missing signature on set_callback

This commit is contained in:
Henry Fredrick Schreiner 2017-02-24 16:16:11 -05:00
parent e9b5ff72bb
commit 0ccd814ac9

View File

@ -132,8 +132,9 @@ public:
/// it is not possible to overload on std::function (fixed in c++14
/// and backported to c++11 on newer compilers). Use capture by reference
/// to get a pointer to App if needed.
void set_callback(std::function<void()> callback) {
App* set_callback(std::function<void()> callback) {
callback_ = callback;
return this;
}
/// Remove the error when extras are left over on the command line.
@ -141,7 +142,7 @@ public:
allow_extras_ = allow;
}
/// Ignore case
/// Ignore case. Subcommand inherit value.
App* ignore_case(bool value = true) {
ignore_case_ = value;
if(parent_ != nullptr) {
@ -178,7 +179,7 @@ public:
///
/// std::string filename
/// program.add_option("filename", filename, "description of filename");
///
Option* add_option(
std::string name,
callback_t callback,