Skip to content

Handle positional args interspersed in the named args #48

Description

@cgay

Low priority, I'd say...

Some parsers (Python optparse, possibly the Go flag package) extract positional arguments that are interspersed in between named arguments, and we should probably do the same. Example:

The command line doit -a --when=now dog --why=because cat should be parsed as having positional args #("dog", "cat").

Maybe check C++ and Java arg parsers to see how consistently this is done.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions