Saving designed syntax
[command.git] / README
1 Command, a C++ library for handling command line arguments
2
3 Designing to be used like follows:
4
5 Example:
6     command::Command command(argc, argv, {
7         command::Option<std::string>("f", "File path", [](std::string value)->void { cout << "Sth: " << value << endl; }),
8         command::Argument<std::string>("File path", []()->void { cout << "Sth: " << value << endl; }),
9         command::Option<void>("help", "Help description", [](void)->void { cout << "Sth: " << value << endl; }),
10         command::Option<void>("verbose", "Verbose option description", &myClass->verbose)
11     });
12