MCPcopy
hub / github.com/docopt/docopt / single_match

Method single_match

docopt.py:176–183  ·  view source on GitHub ↗
(self, left)

Source from the content-addressed store, hash-verified

174 self.value = value
175
176 def single_match(self, left):
177 for n, p in enumerate(left):
178 if type(p) is Argument:
179 if p.value == self.name:
180 return n, Command(self.name, True)
181 else:
182 break
183 return None, None
184
185
186class Option(ChildPattern):

Callers

nothing calls this directly

Calls 1

CommandClass · 0.85

Tested by

no test coverage detected