From 84c816e887622688c134cd081c377d208caeb79b Mon Sep 17 00:00:00 2001 From: Tim Kevin Oxley Date: Mon, 29 Mar 2021 09:54:28 -0400 Subject: [PATCH] Mention `--ansi never` in `--no-ansi` deprecation Ideally deprecation messages should point users directly at the non-deprecated alternative so it's a no-brainer for someone to switch to it. Signed-off-by: Tim Kevin Oxley --- compose/cli/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose/cli/main.py b/compose/cli/main.py index c6f6560a0..d0ec19f4a 100644 --- a/compose/cli/main.py +++ b/compose/cli/main.py @@ -171,7 +171,8 @@ def dispatch(): if options.get("--no-ansi"): if options.get("--ansi"): raise UserError("--no-ansi and --ansi cannot be combined.") - log.warning('--no-ansi option is deprecated and will be removed in future versions.') + log.warning('--no-ansi option is deprecated and will be removed in future versions. ' + 'Use `--ansi never` instead.') ansi_mode = AnsiMode.NEVER setup_console_handler(console_handler,