Skip to content

Invalid error message generated when unmatched positional argument is the same as one of previous valid argument #1225

@vi

Description

@vi
$ java -jar  app.jar   sdf sf sdf
Unmatched argument at index 0: 'sdf'
Usage: app [-hV] <arg1> <arg2>
...
$ java -jar  app.jar   sdf sf qqq
Unmatched argument at index 2: 'qqq'
Usage: app [-hV] <arg1> <arg2>
...

Expected them to be both "index 2".

Version 4.5.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions