MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / optionsForFlags

Method optionsForFlags

server.py:171–181  ·  view source on GitHub ↗
(self, flags)

Source from the content-addressed store, hash-verified

169 return self.optionsForFlags(flags)
170
171 def optionsForFlags(self, flags):
172 if flags is None:
173 return None
174 try:
175 workdir = flags[flags.index("-working-directory") + 1]
176 except (IndexError, ValueError):
177 workdir = os.getcwd()
178 return {
179 "options": flags,
180 "workingDirectory": workdir,
181 }
182
183 def notify_option_changed(self, uri):
184 # no clear options?

Callers 3

register_uriMethod · 0.95
sourceKitOptionsMethod · 0.95
optionsForFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected