Permalink
Browse files

Make help for the console command more explicit about how to specify …

…the desired environment in which to run the console. Closes #2911.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent dd198e2 commit f14625bb46f23cadf732d0ac4bd1cd24248e5023 Marcel Molina committed Nov 21, 2005
Showing with 2 additions and 0 deletions.
  1. +1 −0 railties/CHANGELOG
  2. +1 −0 railties/lib/commands/console.rb
View
@@ -1,4 +1,5 @@
*SVN*
+* Make help for the console command more explicit about how to specify the desired environment in which to run the console. #2911. [anonymous]
* PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database. #2964 [dreamer3@gmail.com]
@@ -3,6 +3,7 @@
require 'optparse'
options = { :sandbox => false, :irb => irb }
OptionParser.new do |opt|
+ opt.banner = "Usage: console [environment] [options]"
opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |options[:sandbox]| }
opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |options[:irb]| }
opt.parse!(ARGV)

0 comments on commit f14625b

Please sign in to comment.