check ENV for VAGRANT_NOCOLOR (equivalent of --no-color on cmdline)

This commit is contained in:
root 2013-09-23 19:21:51 +02:00
parent 33dd881ad7
commit e4b6c91b7c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ opts = {}
# * STDOUT is not a TTY
# * The terminal doesn't support colors (Windows)
#
if ARGV.include?("--no-color")
if ARGV.include?("--no-color") or ENV["VAGRANT_NOCOLOR"]
# Delete the argument from the list so that it doesn't
# cause any invalid arguments down the road.
ARGV.delete("--no-color")