瀏覽代碼

Merge pull request #9311 from quite/no-ansi-be-kind

Don't use ansi even when deprecated option is requested
Milas Bowman 3 年之前
父節點
當前提交
ab25aabfb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmd/compose/compose.go

+ 1 - 1
cmd/compose/compose.go

@@ -277,7 +277,7 @@ func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command {
 					return errors.New(`cannot specify DEPRECATED "--no-ansi" and "--ansi". Please use only "--ansi"`)
 				}
 				ansi = "never"
-				fmt.Fprint(os.Stderr, aec.Apply("option '--no-ansi' is DEPRECATED ! Please use '--ansi' instead.\n", aec.RedF))
+				fmt.Fprint(os.Stderr, "option '--no-ansi' is DEPRECATED ! Please use '--ansi' instead.\n")
 			}
 			if verbose {
 				logrus.SetLevel(logrus.TraceLevel)