简体   繁体   中英

Yii2 console: How to disable color output in command via command line?

I like to have colors in output of my Yii2 console commands but in a special scenario I'm using it in a terminal that doesn't support colors and it looks all weird. Isn't there a command line option I can disable colors with?

您可以使用--color开关:

./yii my-command --color=0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM