-
Notifications
You must be signed in to change notification settings - Fork 445
Closed
Labels
theme: parserAn issue or change related to the parserAn issue or change related to the parsertype: bug 🐛type: enhancement ✨
Milestone
Description
This is an extension of b287f78
When consuming arguments for a varargs positional argument you check that the next arg isn't a recognised option, but not whether it resembles an option.
Thus mycmd --real-option arg and mycmd arg --real-option are handled symmetrically (one positional arg and one option consumed), but mycmd --no-such-option arg and mycmd arg --no-such-option are not (1 unmatched, 1 positional and 0 unmatched, 2 positional respectively).
Metadata
Metadata
Assignees
Labels
theme: parserAn issue or change related to the parserAn issue or change related to the parsertype: bug 🐛type: enhancement ✨