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.