You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int Main(int argc, const char* argv[]) {
bool help = false;
std::string out_path{};
std::vector<std::string> input_paths;
auto cli = lyra::cli_parser() | lyra::help(help) | lyra::arg(input_paths, "input...").required()("Input files, in gzip compressed CSV format");
auto result = cli.parse({argc, argv});
if (!result) {
std::cerr << "Error in command line: " << result.errorMessage() << "\n";
std::cerr << cli;
return 1;
}
...
}
when passed ./test a b c gives the error:
Error in command line: Unrecognized token: b
How might I set it to take any number of arguments? I saw the cardinality() call, but there's essentially no upper bound on the number of arguments. I could specify some arbitrary high limit, but I suspect I'm doing it wrong :)
The text was updated successfully, but these errors were encountered:
The following code:
when passed
./test a b c
gives the error:How might I set it to take any number of arguments? I saw the
cardinality()
call, but there's essentially no upper bound on the number of arguments. I could specify some arbitrary high limit, but I suspect I'm doing it wrong :)The text was updated successfully, but these errors were encountered: