Skip to content

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

@pfeatherstone

Description

@pfeatherstone

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions