Lyra icon indicating copy to clipboard operation
Lyra copied to clipboard

A simple to use, composable, command line parser for C++ 11 and beyond

Results 34 Lyra issues
Sort by recently updated
recently updated
newest added

Because the lambda is taken by `const&` is can only be copied into the parser object, which is not possible if it contains state that can only be moved. https://godbolt.org/z/d9hGsa1Te

bug

This only seems to emerge in the following constellation ```cpp cli.add_argument( lyra::command{"command", ...} .cardinality(n, m) // values don't seem to matter .add_argument( lyra::command{"subcommand", ...}); ``` When invoked with `exec command`...

When one defines multiple commands at the same level ```cpp cli.add_argument( lyra::command("foo", [&](lyra::group const& g) { fmt::println("running foo"); }) ); cli.add_argument( lyra::command("bar", [&](lyra::group const& g) { fmt::println("running bar"); }) );...

bug

When calling `choices("foo")` it appears the array overload is preferred, leading to the value not being accepted. ```cpp auto choice = std::string{}; cli.add_argument( lyra::opt(choice, "your choice") .name("--choice") .choices("foo") // does...

bug