MCPcopy
hub / github.com/pallets/click / set_debug

Function set_debug

tests/test_defaults.py:356–364  ·  view source on GitHub ↗
(ctx, param, value)

Source from the content-addressed store, hash-verified

354 monkeypatch.delenv("APP_DEBUG", raising=False)
355
356 def set_debug(ctx, param, value):
357 source = ctx.get_parameter_source(param.name)
358 if source is not None and source in (
359 ParameterSource.DEFAULT,
360 ParameterSource.DEFAULT_MAP,
361 ):
362 return None
363 os.environ["APP_DEBUG"] = "1" if value else "0"
364 return value
365
366 @click.command()
367 @click.option(

Callers

nothing calls this directly

Calls 1

get_parameter_sourceMethod · 0.80

Tested by

no test coverage detected