Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: set those args which are matched to 0 #83

Open
pfeatherstone opened this issue Feb 13, 2020 · 0 comments
Open

Feature request: set those args which are matched to 0 #83

pfeatherstone opened this issue Feb 13, 2020 · 0 comments

Comments

@pfeatherstone
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant