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.
If I create a config filename with non ascii characters, `./my_app --print > déjà` When I call: `./my_app --config déjà`, I got: ``` my_app-cli.exe --config déjà déjà was not readable...
Can I add option in a callback function? such as :` CLI::App app{"argparse"}; parameter = app.add_subcommand("parameter", "")->parse_complete_callback([&](){ std::string path; parameter->add_option("--path", path, "the absolute path of files"); }); CLI11_PARSE(app, argc, argv);`...
This is the problem that I have: * Given an enum serialization framework like [magic_enum](https://github.com/Neargye/magic_enum), * Make CLI11 use it for all enums that the framework supports, * Automatically, as...
When I set a flag like this: ```cpp app.add_flag("--hidden,!--no-hidden", showHiddenFiles, "Show or hide hidden files"); ``` the resulting help text looks like this: ``` --hidden, --no-hidden{false} Show or hide hidden...
I have the following minimal example: ``` #include "CLI11.hpp" #include int main(int argc, char** argv) { CLI::App app{"App description"}; app.add_option("--input", "input option") ->default_val("optionA") ->check(CLI::IsMember({"optionA", "optionB", "optionC"})); CLI11_PARSE(app, argc, argv); auto...
_This is the new PR I've mentioned to work on in PR #858_ ## A better Help Formatter _See below for images of the new help page_ Finally, after a...
Currently the generated help text looks like this: ``` Options: -h,--help Print this help message and exit -v,--version Print App version ``` I suggest adding a space between the aliases...
- Polish empty lines and disable description printing for apps and subcommands with empty name, empty group and with no options and subcommands. - Add commentDefaults() method to trigger to...
### Discussed in https://github.com/CLIUtils/CLI11/discussions/778 Originally posted by **Ivan-SB** September 20, 2022 I'd like to write a date/time validator/converter but I'm not even able to write a trivial do nothing custom...
In the README, it is recommended to include the following three headers in your application: #include "CLI/App.hpp" #include "CLI/Formatter.hpp" #include "CLI/Config.hpp" This works well, with the exception that clangd raises...