X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=include%2Fargument.h;h=2cd3c300f970a8d2e205de7685a6f10fd9ad241d;hp=81a7cd4186e8c4be1c755b74d42829ab7e0fb25b;hb=ae6743a2a2c69b7a927f64ff1d3abf38a5e7d4bc;hpb=948c501fbb8d47898a9c92697327c5ffa70a898f diff --git a/include/argument.h b/include/argument.h index 81a7cd4..2cd3c30 100644 --- a/include/argument.h +++ b/include/argument.h @@ -4,6 +4,7 @@ #include #include #include +#include #include "parameter.h" #include "callable.h" @@ -35,6 +36,10 @@ namespace command { : Parameter(description), Callable(function) { } + Argument(const std::string & description, std::function function) + : Parameter(description), Callable(function) { + } + /** * */