Skip to content

Regression in error messages when two args from a non-multiple group were passed #1859

@CreepySkeleton

Description

@CreepySkeleton

This is what it used to look like:

error: The argument '--delete' cannot be used with '<base>'
USAGE:
    clap-test <base|--delete>
For more information try --help"

After #1856 has landed, it looks like

error: Found argument '--all' which wasn't expected, or isn't valid in this context
If you tried to supply `--all` as a PATTERN use `-- --all`
USAGE:
    clap-test <-a|--delete>
For more information try --help"

This is undesirable and must be corrected, but the bugfix is more important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-hardCall for participation: Experience needed to fix: Hard / a lot

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions