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

Method parse

preprocessor/docopt.py:159–162  ·  view source on GitHub ↗
(class_, source)

Source from the content-addressed store, hash-verified

157
158 @classmethod
159 def parse(class_, source):
160 name = re.findall('(<\S*?>)', source)[0]
161 value = re.findall('\[default: (.*)\]', source, flags=re.I)
162 return class_(name, value[0] if value else None)
163
164
165class Command(Argument):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected