bin/lessc in unboxed-less-1.2.12 vs bin/lessc in unboxed-less-1.2.19
- old
+ new
@@ -18,23 +18,24 @@
options = {
:watch => false,
:compress => false,
:debug => false,
:growl => false,
- :color => true
+ :timestamps => false,
+ :color => $stdout.tty?
}
# Get arguments
opts = OptionParser.new do |o|
o.banner = "usage: lessc source [destination] [--watch]"
o.separator ""
-
+
# Watch mode
o.on("-w", "--watch", "watch for changes") do
options[:watch] = true
end
-
+
# Growl
o.on("-g", "--growl", "growl notifications") do
if Less::GROWL && (Growl.installed? rescue false)
options[:growl] = true
elsif Less::GROWL
@@ -42,29 +43,38 @@
else
abort "Growl gem not found, please install with: " +
"`sudo gem install visionmedia-growl -s http://gems.github.com`"
end
end
-
+
+ # Timestamps
+ o.on("-t", "--timestamps", "show timestamps in watch mode") do
+ options[:timestamps] = true
+ end
+
# No color in output
o.on("--no-color", "suppress color in output") do
options[:color] = false
end
-
+
+ o.on('--verbose', 'show success messages when using growl') do
+ options[:verbose] = true
+ end
+
# Compression needs a proper algorithm
#
# o.on("-x", "--compress", "compress css file") do
# options[:compress] = true
# end
-
+
o.separator ""
# Help
o.on_tail("-h", "--help", "show this message") do
puts opts
exit
end
-
+
o.on_tail("-d", "--debug", "show full error messages") do
options[:debug] = true
end
# Version