[Command Line] Command line switch (--boring) to turn off colorized output.

This commit is contained in:
Chris Eppstein 2010-01-10 10:52:28 -08:00
parent 38ff0b7929
commit d15298afa8
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,10 @@ module Compass::Exec::GlobalOptionsParser
self.options[:dry_run] = true self.options[:dry_run] = true
end end
opts.on('--boring', :NONE, 'Turn off colorized output.') do
self.options[:color_output] = false
end
opts.on_tail("-?", "-h", "--help", "Show this message") do opts.on_tail("-?", "-h", "--help", "Show this message") do
puts opts puts opts
exit exit

View File

@ -154,6 +154,10 @@ END
self.options[:command] = :print_version self.options[:command] = :print_version
end end
opts.on('--boring', :NONE, 'Turn off colorized output.') do
self.options[:color_output] = false
end
end end
def do_command(command) def do_command(command)