-
The example given at https://docopt.github.io/docopt.net/dev/#help-in-a-external-file has this code:
but there is no public parser variation with a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can find the variation nested under docopt.net/src/DocoptNet/Parser.cs Lines 29 to 32 in cc1258e Bear in mind that the
|
Beta Was this translation helpful? Give feedback.
-
I see what the problem was: This is in a project that was migrated from the Old Way, where it wasn't necessary to explicitly list the help option in the usage:
Without that line, the source generator creates an |
Beta Was this translation helpful? Give feedback.
You can find the variation nested under
IParser<>
inParser.cs
:docopt.net/src/DocoptNet/Parser.cs
Lines 29 to 32 in cc1258e
Bear in mind that the
Match
method changes its arity depending on the API composition. This is pointed out in the API section of the documentation: