C++ library for handling command line arguments, designed to be easily used.
## Installation
-1. $ ./autogen.sh
-2. $ ./configure
-3. $ make
-4. $ sudo make install
+
+ $ ./autogen.sh
+ $ ./configure
+ $ make
+ $ sudo make install
## Configuration
$ g++ -std=c++11 example.cpp
$ ./a.out -h
Help information
+
+## Documentation
+
+Current documentation can be found at:
+http://dlugolecki.net.pl/software/command/docs/
+
+If for some reason it is unavailable, you can build it yourself. The only
+requirement is to have [Doxygen](www.doxygen.org/) installed when `make` command is invoked.
--- /dev/null
+#include <iostream>
+#include <command/command.h>
+#include <command/option.h>
+
+using namespace command;
+
+/**
+ * Just a simple example allowing to display help information if user will set
+ * command line option: -h, e.g.:
+ *
+ * ./a.out -h
+ *
+ */
+int main(int argc, char *argv[]) {
+ try {
+ Command command(argc, argv, {
+ new Option<void>("-h", "Help", [](void) {
+ std::cout << "Help information\n";
+ })
+ });
+ }
+ catch(const std::exception & e) {
+ return 1;
+ }
+
+ return 0;
+}