added the verbose option to the CLI

This commit is contained in:
Jeremy Ashkenas
2009-12-19 00:37:54 -05:00
parent b2e6a34d40
commit 0b2e7f1e59

View File

@@ -138,11 +138,14 @@ Usage:
opts.on('-t', '--tokens', 'print the tokens that the lexer produces') do |t|
@options[:tokens] = true
end
opts.on('-v', '--verbose', 'print at every step of code generation') do |v|
ENV['VERBOSE'] = 'true'
end
opts.on_tail('--install-bundle', 'install the CoffeeScript TextMate bundle') do |i|
install_bundle
exit
end
opts.on_tail('-v', '--version', 'display coffee-script version') do
opts.on_tail('--version', 'display coffee-script version') do
puts "coffee-script version #{CoffeeScript::VERSION}"
exit
end