bin/opal-build in opal-0.6.3 vs bin/opal-build in opal-0.7.0.beta1
- old
+ new
@@ -17,13 +17,13 @@
puts opts
exit
end
opts.on('-g', '--gem GEM_NAME', String,
- 'Adds the specified GEM_NAME to Opal\'s load path.',
- 'E.g.: opal-build --require opal-browser browser`',
- 'Will build browser.rb from the Opal gem opal-browser') do |g|
+ 'Adds the specified GEM_NAME lib dir to Opal\'s load path.',
+ 'E.g.: opal-build --gem erubis -- erubis`',
+ 'Will build erubis.rb from the regular "erubis" gem') do |g|
options[:gems] ||= []
options[:gems] << g
end
opts.on('-s', '--stub STUB', String) do |stub|
@@ -52,10 +52,10 @@
option_parser = Opal::BuilderOptions.new
option_parser.parse!
if ARGV.empty?
- puts options
+ puts option_parser
else
require 'opal'
options = option_parser.options
if options[:gems]