MCPcopy Create free account
hub / github.com/celery/celery / getopt

Method getopt

celery/apps/multi.py:252–258  ·  view source on GitHub ↗
(self, *alt)

Source from the content-addressed store, hash-verified

250 return shlex.split(from_utf8(args), posix=not IS_WINDOWS)
251
252 def getopt(self, *alt):
253 for opt in alt:
254 try:
255 return self.options[opt]
256 except KeyError:
257 pass
258 raise KeyError(alt[0])
259
260 def __repr__(self):
261 return f'<{type(self).__name__}: {self.name}>'

Callers 2

pidfileMethod · 0.95
logfileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected