MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / single_match

Method single_match

preprocessor/docopt.py:170–177  ·  view source on GitHub ↗
(self, left)

Source from the content-addressed store, hash-verified

168 self.name, self.value = name, value
169
170 def single_match(self, left):
171 for n, pattern in enumerate(left):
172 if type(pattern) is Argument:
173 if pattern.value == self.name:
174 return n, Command(self.name, True)
175 else:
176 break
177 return None, None
178
179
180class Option(LeafPattern):

Callers

nothing calls this directly

Calls 1

CommandClass · 0.85

Tested by

no test coverage detected