Skip to content

Support overridable options #120

@clubby789

Description

@clubby789

It would be useful to have a way to specify an option which uses its last occurrence as its value; e.g.

cmd --foo fizz --foo buzz
assert_eq!(matches.opt_str("foo"), Some("buzz"))

This is useful for tools which are passed automatically generated arguments which a user may wish to override by appending their own (motivated by rust-lang/rust#133072)

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