docopt.cpp
docopt.cpp copied to clipboard
C++11 port of docopt
While parsing of the documentation with `docopt::docopt()` is `-fno-exceptions` environment friendly, accessing any parsed value is not and requires some boilerplate code like ```cpp std::map< std::string, docopt::value > args; {...
``` #include "docopt.h" #include static const char usage[] = R"(Usage: order [-t -C ] Options: -t T val -C C val )"; int main(int argc, char *argv[]) { std::map args...
### Commit * Move return so that switch has default case When a project using docopt.cpp is built with `-Werror=switch-default` option, there's an error ``` error: switch missing default case...
This commit declares the transitive dependency to Boost in case docopt is build with Boost regex support. In this way, the user doesn't need to declare the dependency to Boost...
This pull request adds github CI support so master and branches can be regressed automatically against existing tests.
So I've found myself quite struggling to figure out how to use the returned code. Perhaps documentation or example with the use cases of the functions should be added: Use...
Is the ordered nature of the options used?
Fixes #104 This replaces 2 libraries declared in CMake: docopt (SHARED) and docopt_s (STATIC) with single one docopt which can be built as static or shared depending on -DBUILD_SHARED_LIBS=ON/OFF.
I have installed `doctopt.cpp` as follows: ```bash mkdir /some/tempdir cd /some/tempdir cmake /path/to/docopt.cpp make install ``` Then I want to use it using CMake, but `${DOCOPT_LIBRARIES}` is empty. Here is...
Running my project through MSAN, which uses Docopt.cpp, gives me the following: ``` WARNING: MemorySanitizer: use-of-uninitialized-value [1441]()6: #0 0x434fdc in bcmp (/home/travis/build/acgetchell/CDT-plusplus/build/src/initialize+0x434fdc) [1442]()6: #1 0x625c4a in docopt::docopt_parse(std::__cxx11::basic_string const&, std::vector