MCPcopy Index your code
hub / github.com/docopt/docopt / match

Method match

docopt.py:241–245  ·  view source on GitHub ↗
(self, left, collected=None)

Source from the content-addressed store, hash-verified

239class Optional(ParentPattern):
240
241 def match(self, left, collected=None):
242 collected = [] if collected is None else collected
243 for p in self.children:
244 m, left, collected = p.match(left, collected)
245 return True, left, collected
246
247
248class AnyOptions(Optional):

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected