clipp icon indicating copy to clipboard operation
clipp copied to clipboard

easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation

Results 51 clipp issues
Sort by recently updated
recently updated
newest added

Using the following: ```cpp auto dither = ( command("dither").set(run_mode, mode::dither), option("--palette") & value("palette", palette), option("--hicolor").set(hicolor, true), option("--error-diffusion").set(error_diffusion, true), value("image").set(in) ); ``` Help string looks OK: tool dither [--palette ] [--hicolor]...

Any plans for this? I took a look at the code, it seems the majority of the library is written with a type alias so that is nice. I think...

How do i correctly write: ``` std::string cmdFnTypeDef; std::vector cmdFnArgs; auto cli = ( clipp::repeatable(clipp::option("-f", "--func") & clipp::value("typedef", cmdFnTypeDef) & clipp::values("args", cmdFnArgs)) ); ``` i want it to look like:...

From the README, I expected ``` exe (-l )... repeatable( required("-l") & value("lines", ids) ) ``` to parse `exe -l 0 -l 1 -l 2` where `ids` would contain 0,...

This allows repeatable required options to have a single argument. I'm not entirely confident that my change is correct. It may be better to apply the check sooner in the...

Right from the README quick reference, trying to use `repeatable(required("-l") & value("lines", ids))` fails to parse correctly, where the `parsing_result` considers the required value as a missing argument: ```cpp #include...

I am trying to figure out, how to implement an option for a "verbosity" level `-v`. The idea is that it should be _repeatable_ and _joinable_, i.e. `-v` should set...

bug

```c++ auto compress = ( command("compress").set(sc, subcommand::COMPRESS) | command("decompress").set(sc, subcommand::DECOMPRESS) ) % "(de)compress stdin to stdout"; auto convert = ( command("convert").set(sc, subcommand::CONVERT), value("input.vox", in_path), value("output.tox", out_path) ) % "convert a...

This program gives: test(false)=Failed test(true)=OK With HEAD on Linux Ubuntu with gcc 9.2.1 and clang 9.0.0. I don't think the changein order should matter. >>>>>> #include "clipp.h" #include #include using...

I have this code ```cpp auto run_spec = "run options" % ( command("run").set(args.selected_mode, mode::run), value("input file or folder", args.target) % "Path to a file", (option("--test_spec") & value("wildcard pattern", args.test_spec)) %...