Added Argument boolean tests.
[command.git] / src / main.cpp
index 379d14a6e3004c3b1f4a16436994b2f98f01f881..813491aae3442b231841f2490d4faecae04200c4 100644 (file)
@@ -1,4 +1,20 @@
+#include <iostream>
+#include <string>
+
+#include "option.h"
+#include "argument.h"
+#include "command.h"
+
+void some_function(bool a) {
+    std::cout << "Some function " << a << std::endl;
+}
+
+int main(int argc, char *argv[]) {
+    command::Command command(argc, argv, {
+//         new command::Argument<std::string>("File path", [](std::string value)->void { std::cout << "Hello from lambda " << value << std::endl; }),
+        new command::Argument<bool>("File path", some_function)/*,
+        new command::Option<std::string>("h", "Help", some_function)*/
+    });
 
-int main() {
     return 0;
 }
\ No newline at end of file