From f14625bb46f23cadf732d0ac4bd1cd24248e5023 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Mon, 21 Nov 2005 05:33:13 +0000 Subject: 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 --- railties/CHANGELOG | 1 + railties/lib/commands/console.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'railties') 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) -- cgit v1.2.3