expandOptionsShortcut
- Overload of
docoptthat accepts a compile-time parsed descriptor. * - This avoids reparsing the documentation at runtime when a string literal
- was available at compile time. Semantics are equivalent to the string
- overload. Expand every
[options]shortcut inpatternwith the options declared in the document that do not already appear literally in the pattern.
Shared by both docopt overloads so the expansion cannot drift.
Parameters
pattern | Root usage pattern (mutated in place). |
options | Options declared by the document (pre-argv list). |