Closed petemoore closed 6 years ago
From what I gather from the website you need to wrap the innards of [] with ()
Many thanks @fenollp, indeed it does seem to work with: taskcluster-proxy [((-p|--port) <port>)] [(--client-id <clientId> --access-token <accessToken> [(--certificate <certificate>)])] ([(-a|--all-scopes)]|([((-t|--task-id) <taskId>)] [((-s|--scopes) <scope>...)]))
.
Certainly this makes it a lot less readable - it would seem reasonable to me if docopt was to internally replace the innards of [] with (). I appreciate this is just the go implementation, so the responsibility probably lies with the parent project.
In any case thanks for highlighting the issue for me, and hopefully one day this requirement will be dropped.
Something not quite right here:
As you see, the parsing should not succeed, since
--access-token
is specified without--client-id
, yet the parsing succeeds, and assigns the access token to the<clientId>
property.