37ca36f9d6cabd4ceb67bf239b8a6a9f3c0149d8
[command.git] / src / main.cpp
1
2 int main() {
3     command::Command command(argc, argv, {
4         command::Option<std::string>("f", "File path", [](std::string value)->void { cout << "Sth: " << value << endl; }),
5         command::Argument<std::string>("File path", []()->void { cout << "Sth: " << value << endl; }),
6         command::Option<void>("help", "Help description", [](void)->void { cout << "Sth: " << value << endl; }),
7         command::Option<void>("verbose", "Verbose option description", &myClass->verbose)
8     });
9
10     return 0;
11 }