MCPcopy
hub / github.com/scrapy/scrapy / run

Method run

scrapy/commands/settings.py:49–65  ·  view source on GitHub ↗
(self, args: list[str], opts: argparse.Namespace)

Source from the content-addressed store, hash-verified

47 )
48
49 def run(self, args: list[str], opts: argparse.Namespace) -> None:
50 assert self.settings is not None
51 settings = self.settings
52 if opts.get:
53 s = settings.get(opts.get)
54 if isinstance(s, BaseSettings):
55 print(json.dumps(s.copy_to_dict()))
56 else:
57 print(s)
58 elif opts.getbool:
59 print(settings.getbool(opts.getbool))
60 elif opts.getint:
61 print(settings.getint(opts.getint))
62 elif opts.getfloat:
63 print(settings.getfloat(opts.getfloat))
64 elif opts.getlist:
65 print(settings.getlist(opts.getlist))

Callers

nothing calls this directly

Calls 6

copy_to_dictMethod · 0.80
getintMethod · 0.80
getfloatMethod · 0.80
getMethod · 0.45
getboolMethod · 0.45
getlistMethod · 0.45

Tested by

no test coverage detected