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
In args::parse_args, rather than parsing const char** argv , parse char** argv and set those argv entries to null if they are matched.
Furthermore, in ParseCLI, only populate the std::vector<std::string> args vector with entries in argv which are not null.
With both suggestions, we can start nesting parsers. For example we parse a first set of flags, then go to the next set of flags depending on the result of the first parser, using the remaining non-null argv arguments.
The text was updated successfully, but these errors were encountered:
In
args::parse_args
, rather than parsingconst char** argv
, parsechar** argv
and set thoseargv
entries to null if they are matched.Furthermore, in ParseCLI, only populate the
std::vector<std::string> args
vector with entries inargv
which are not null.With both suggestions, we can start nesting parsers. For example we parse a first set of flags, then go to the next set of flags depending on the result of the first parser, using the remaining non-null
argv
arguments.The text was updated successfully, but these errors were encountered: