(ctx, param, value)
| 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( |
nothing calls this directly
no test coverage detected