[Command Line] Command line switch (--boring) to turn off colorized output.
This commit is contained in:
parent
38ff0b7929
commit
d15298afa8
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user