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
Right from the README quick reference, trying to use repeatable(required("-l") & value("lines", ids)) fails to parse correctly, where the parsing_result considers the required value as a missing argument:
#include"clipp.h"
#include<iostream>intmain(int argc, char *argv[])
{
usingnamespaceclipp;
std::vector<size_t> ids;
auto cli = repeatable(required("-l") & value("lines", ids));
auto result = parse(argc, argv, cli);
if (!result) {
debug::print(std::cerr, result);
return1;
}
return0;
}
Right from the README quick reference, trying to use
repeatable(required("-l") & value("lines", ids))
fails to parse correctly, where theparsing_result
considers the required value as a missing argument:Result of running:
Note that more than one argument (e.g.,
./a.out -l 0 -l 1
) parses correctly.The text was updated successfully, but these errors were encountered: