lib/trinidad/command_line_parser.rb in trinidad-0.5.0 vs lib/trinidad/command_line_parser.rb in trinidad-0.6.0
- old
+ new
@@ -58,10 +58,19 @@
opts.on('-f', '--config [CONFIG_FILE]', 'Configuration file',
"default: #{default_options[:config]}") do |v|
default_options[:config] = v if v
default_options.deep_merge! YAML.load_file(default_options[:config])
end
+
+ opts.on('-r', '--rackup [RACKUP_FILE]', 'Rackup configuration file',
+ 'default: config.ru') do |v|
+ default_options[:rackup] = v || 'config.ru'
+ end
+
+ opts.on('--public', '--public DIRECTORY', 'Public directory', 'default: public') do |v|
+ default_options[:public] = v
+ end
opts.on('-v', '--version', 'display the current version') do
puts File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
exit
end
@@ -75,6 +84,6 @@
end
default_options
end
end
-end
\ No newline at end of file
+end