Skip to content

Commit

Permalink
Fix typo in thin script usage message and expand chdir path
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Jan 9, 2008
1 parent 0822993 commit 8d16c53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
== 0.5.2 Cheezburger release
* Fix typo in thin script usage message and expand chdir path.
* Rename thin script options to be the same as mongrel_rails script:
-o --host => -a --address
--log-file => --log
Expand Down
2 changes: 1 addition & 1 deletion bin/thin
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ opts = OptionParser.new do |opts|
opts.on("-a", "--address HOST", "bind to HOST address (default: 0.0.0.0)") { |host| options[:host] = host }
opts.on("-p", "--port PORT", "use PORT (default: 3000)") { |port| options[:port] = port }
opts.on("-e", "--environment ENV", "Rails environment (default: development)") { |env| options[:env] = env }
opts.on("-c", "--chdir PATH", "listen on HOST (default: current dir)") { |dir| options[:root] = dir }
opts.on("-c", "--chdir PATH", "Change to dir before starting") { |dir| options[:root] = File.expand_path(dir) }
opts.on("-d", "--daemonize", "Run daemonized in the background") { options[:daemonize] = true }
opts.on("-l", "--log FILE", "File to redirect output",
"(default: #{options[:log_file]})") { |file| options[:log_file] = file }
Expand Down

0 comments on commit 8d16c53

Please sign in to comment.