We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d88f7 commit e7ccbf5Copy full SHA for e7ccbf5
1 file changed
cli/cli.h
@@ -685,7 +685,7 @@ namespace cli
685
F fun,
686
const std::string& desc = "unknown command"
687
)
688
- : Command(_name), function(std::move(fun)), description(desc)
+ : Command(_name), func(std::move(fun)), description(desc)
689
{
690
}
691
@@ -697,7 +697,7 @@ namespace cli
697
698
try
699
700
- auto g = [&](auto ... pars){ function( session.OutStream(), pars... ); };
+ auto g = [&](auto ... pars){ func( session.OutStream(), pars... ); };
701
Select<decltype(g), Args...>::Exec(g, std::next(cmdLine.begin()), cmdLine.end());
702
703
catch (boost::bad_lexical_cast &)
@@ -717,7 +717,7 @@ namespace cli
717
718
private:
719
720
- const F function;
+ const F func;
721
const std::string description;
722
};
723
0 commit comments