Skip to content

Parsers that consume multiple arguments #284

@chris-martin

Description

@chris-martin

Is there a way to write a parser for an option that takes multiple command-line arguments?

For example, if I wanted the command-line args

-p one two -p three four

to be parsed into a result like

[("one", "two"), ("three", "four")]

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