7 #include "multiValue.h"
11 using namespace command;
13 void argument_function(bool a) {
14 std::cout << "Argument: " << a << std::endl;
17 void option_function(std::string a) {
18 std::cout << "Help function " << a << std::endl;
21 void void_function(void) {
22 std::cout << "Void function " << std::endl;
25 int main(int argc, char *argv[]) {
27 Command command(argc, argv, {
29 new Required(new MultiValue("-", new Argument<bool>("Input values", argument_function))),
30 new MultiValue(",", new Option<std::string>("f", "Optional file", option_function))
32 new Option<void>("h", "Help", void_function)
35 catch(const std::exception & e) {
36 std::cout << e.what() << std::endl;