diff options
author | Marcel Molina <marcel@vernix.org> | 2005-11-21 05:33:13 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-11-21 05:33:13 +0000 |
commit | f14625bb46f23cadf732d0ac4bd1cd24248e5023 (patch) | |
tree | bbcbaca8652d4044328488870c8b648f2442946a /railties/lib/commands/console.rb | |
parent | dd198e259f6b16f729aa5dbef2f234399cdc0b38 (diff) | |
download | rails-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/lib/commands/console.rb')
-rw-r--r-- | railties/lib/commands/console.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |