X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=README;h=add86148f874625eacb9a9b69dbe4517edf49c95;hp=ec423e579015ece3e49a4a47ea6729dec4b112a9;hb=11d02293868800d7f5e31b5097e6f0bab0dbf9bc;hpb=781a55730a622c9f0c1abe5aacf832c59778769d diff --git a/README b/README index ec423e5..add8614 100644 --- a/README +++ b/README @@ -1 +1,12 @@ Command, a C++ library for handling command line arguments + +Designing to be used like follows: + +Example: + command::Command command(argc, argv, { + command::Option("f", "File path", [](std::string value)->void { cout << "Sth: " << value << endl; }), + command::Argument("File path", []()->void { cout << "Sth: " << value << endl; }), + command::Option("help", "Help description", [](void)->void { cout << "Sth: " << value << endl; }), + command::Option("verbose", "Verbose option description", &myClass->verbose) + }); +