X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fmain.cpp;h=017434559a71c9eca8c6e30f223d481c5d826f91;hb=2900a7396aa582dcf622b968c286059b28d9c0a8;hp=379d14a6e3004c3b1f4a16436994b2f98f01f881;hpb=781a55730a622c9f0c1abe5aacf832c59778769d;p=command.git diff --git a/src/main.cpp b/src/main.cpp index 379d14a..0174345 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,24 @@ +#include +#include + +#include "option.h" +#include "argument.h" +#include "command.h" + +void some_function(bool a) { + std::cout << "Some function " << a << std::endl; +} + +void help_function(std::string a) { + std::cout << "Some function " << a << std::endl; +} + +int main(int argc, char *argv[]) { + command::Command command(argc, argv, { +// new command::Argument("File path", [](std::string value)->void { std::cout << "Hello from lambda " << value << std::endl; }), + new command::Argument("File path", some_function), + new command::Option("h", "Help", help_function) + }); -int main() { return 0; } \ No newline at end of file