Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3120

Show
Ignore:
Timestamp:
11/21/05 05:33:13 (3 years ago)
Author:
marcel
Message:

Make help for the console command more explicit about how to specify the desired environment in which to run the console. Closes #2911.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r3110 r3120  
    11*SVN* 
     2* Make help for the console command more explicit about how to specify the desired environment in which to run the console. #2911. [anonymous] 
    23 
    34* PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database.  #2964 [dreamer3@gmail.com] 
  • trunk/railties/lib/commands/console.rb

    r3083 r3120  
    44options = { :sandbox => false, :irb => irb } 
    55OptionParser.new do |opt| 
     6  opt.banner = "Usage: console [environment] [options]" 
    67  opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |options[:sandbox]| } 
    78  opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |options[:irb]| }