Closed
Description
Given the following program:
#include <CLI/CLI.hpp>
int main(int argc, char** argv) {
CLI::App app("foo");
std::vector<std::string> bar;
app.add_option("bar", bar, "bar")->required();
CLI11_PARSE(app, argc, argv);
for (const auto& entry : bar) {
std::cout << entry << std::endl;
}
return 0;
}
I would expect the output to be like this:
$ ./program this is a test
this
is
a
test
$ ./program "this is a" test
this is a
test
However, the second command instead prints the words separately just like the first command. This seems like a bug caused by #209.
Metadata
Metadata
Assignees
Labels
No labels