Skip to content

Support overridable options #120

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)

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions