Merge pull request #2261 from mrkafk/master

core: check ENV for VAGRANT_NOCOLOR (equivalent of --no-color on cmdline)
This commit is contained in:
Mitchell Hashimoto 2013-11-24 11:57:16 -08:00
commit 0c19578afa
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,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")