From 1dd41cfef416ed38edaffc2c5432797d82767f56 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 18 Dec 2011 14:00:27 -0800 Subject: [PATCH] Delete "--no-color" from arguments if it is given --- bin/vagrant | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/vagrant b/bin/vagrant index 564cbd947..b34464e81 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -17,6 +17,9 @@ opts = {} # Disable color if the proper argument was passed if !$stdout.tty? || ARGV.include?("--no-color") + # Delete the argument from the list so that it doesn't cause any + # invalid arguments down the road. + ARGV.delete("--no-color") opts[:ui_class] = Vagrant::UI::Basic else opts[:ui_class] = Vagrant::UI::Colored