CLI11
CLI11 copied to clipboard
CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
``` #include int main(int argc, char **argv) { CLI::App app{"App"}; int a, b; bool other; auto ogroup_a = app.add_option_group("a_group", "do a"); ogroup_a->add_option("a", a, "option a")->required(); auto ogroup_b = app.add_option_group("b_group", "do...
I want to input 2D array data as: `[1,2,3][4,5,6][7,8,9]`, i also want to get `[1,2,3][4,5,6][7,8,9]` input as one string, but `arrayBounds('\0', '\0')` not take effect. ```cpp // file: test.cpp //...
It would be helpful to printout values/counts for all input arguments as history record in SGE printout files. This information could also be used for checking/debugging at a later time...
Hello, I met the error: fatal error: tests/catch.hpp:9:10: fatal error: catch2/catch.hpp, no this dir. Then I look the CLI11 dir, I didn't find the 'catch2' dir.
For the same options, CLI11 triples my compile time of boost::program_options.
Hi, I started to write an experimental Yaml support. I have added a ConfigYaml class with almost all tests from ConfigFileTest (TOML or INI). Most are ok but, due to...
Hi, is there some way to require that one of { "--option1", "--option2" } is present, but not necessarily both? I looked at the documentation and examples, and couldn't figure...
Hi, I wondered if something like this is possible; let's say I have an optional argument `-f,--freqs` that receives two integer values `-f 10 20`. I want to check a...
Following code does not work. ``` // (...) float2 pre_translate; app.add_option( "--pre_translate", pre_translate, "translate before scaling (ie. to center the svg file)") ->default_val(std::pair{0,0}); // (...) ``` It compiles, but when...
The warning in https://github.com/CLIUtils/CLI11/pull/706 is level 4, but off by default. Let's see what else might show up.