docopt.sh icon indicating copy to clipboard operation
docopt.sh copied to clipboard

Parse failure when calling `Usage: test [ARG1] ARG2` with `test arg`

Open andsens opened this issue 1 year ago • 1 comments

The DOC Usage: test [ARG1] ARG2 fails to parse the command test arg, likely because [ARG1] consumes arg and ARG2 then fails.

andsens avatar Nov 20 '24 11:11 andsens

Workaround: Usage (ARG1 ARG2|ARG2)

andsens avatar Nov 20 '24 11:11 andsens