浏览代码

Merge pull request #8239 from timoxley/patch-1

Mention `--ansi never` in `--no-ansi` deprecation
Anca Iordache 4 年之前
父节点
当前提交
c81046aac0
共有 1 个文件被更改,包括 2 次插入1 次删除
  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,