Browse Source

Merge pull request #8239 from timoxley/patch-1

Mention `--ansi never` in `--no-ansi` deprecation
Anca Iordache 4 years ago
parent
commit
c81046aac0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compose/cli/main.py

+ 2 - 1
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,