lib/trinidad/command_line_parser.rb in trinidad-0.8.2 vs lib/trinidad/command_line_parser.rb in trinidad-0.8.3
- old
+ new
@@ -70,12 +70,21 @@
opts.on('--public', '--public DIRECTORY', 'Public directory', 'default: public') do |v|
default_options[:public] = v
end
+ opts.on('-t', '--threadsafe', 'Threadsafe mode') do
+ default_options[:jruby_min_runtimes] = 1
+ default_options[:jruby_max_runtimes] = 1
+ end
+
opts.on('-v', '--version', 'display the current version') do
puts File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
exit
+ end
+
+ opts.on('-l', '--load EXTENSION_NAME', 'load options for a given extension') do |name|
+ Trinidad::Extensions.configure_options_extensions({name => {}}, opts, default_options)
end
opts.on('-h', '--help', 'display the help') do
puts opts
exit