Don't use ansi even when deprecated option is requested
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
4cebef1bf1
commit
710b637e4a
|
|
@ -272,7 +272,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"`)
|
return errors.New(`cannot specify DEPRECATED "--no-ansi" and "--ansi". Please use only "--ansi"`)
|
||||||
}
|
}
|
||||||
ansi = "never"
|
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 {
|
if verbose {
|
||||||
logrus.SetLevel(logrus.TraceLevel)
|
logrus.SetLevel(logrus.TraceLevel)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue