lib/trinidad/command_line_parser.rb in trinidad-1.1.1 vs lib/trinidad/command_line_parser.rb in trinidad-1.2.0

- old
+ new

@@ -119,11 +119,13 @@ opts.on('-v', '--version', 'display the current version') do puts "trinidad #{Trinidad::VERSION} (tomcat #{Trinidad::TOMCAT_VERSION})" 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) + opts.on('-l', '--load EXTENSION_NAMES', Array, 'load options for extensions') do |ext_names| + ext_names.each do |ext| + Trinidad::Extensions.configure_options_extensions({ext => {}}, opts, default_options) + end end opts.on('--apps', '--apps APPS_BASE_DIR', 'applications base directory') do |path| default_options[:apps_base] = path end