MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / options_reset_one

Method options_reset_one

mitmproxy/addons/core.py:276–286  ·  view source on GitHub ↗

Reset one option to its default value.

(self, name: str)

Source from the content-addressed store, hash-verified

274
275 @command.command("options.reset.one")
276 def options_reset_one(self, name: str) -> None:
277 """
278 Reset one option to its default value.
279 """
280 if name not in ctx.options:
281 raise exceptions.CommandError("No such option: %s" % name)
282 setattr(
283 ctx.options,
284 name,
285 ctx.options.default(name),
286 )

Callers 1

test_optionsFunction · 0.95

Calls 1

defaultMethod · 0.45

Tested by 1

test_optionsFunction · 0.76