1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

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