aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2005-11-21 05:33:13 +0000
committerMarcel Molina <marcel@vernix.org>2005-11-21 05:33:13 +0000
commitf14625bb46f23cadf732d0ac4bd1cd24248e5023 (patch)
treebbcbaca8652d4044328488870c8b648f2442946a /railties
parentdd198e259f6b16f729aa5dbef2f234399cdc0b38 (diff)
downloadrails-f14625bb46f23cadf732d0ac4bd1cd24248e5023.tar.gz
rails-f14625bb46f23cadf732d0ac4bd1cd24248e5023.tar.bz2
rails-f14625bb46f23cadf732d0ac4bd1cd24248e5023.zip
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
Diffstat (limited to 'railties')
-rw-r--r--railties/CHANGELOG1
-rw-r--r--railties/lib/commands/console.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 5dc5e4ebff..e839464ee4 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -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]
diff --git a/railties/lib/commands/console.rb b/railties/lib/commands/console.rb
index 6e61acb22f..696272eba6 100644
--- a/railties/lib/commands/console.rb
+++ b/railties/lib/commands/console.rb
@@ -3,6 +3,7 @@ irb = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'
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)