diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-05-04 22:04:53 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-05-22 08:59:30 +0400 |
commit | 1fed1f14fc0ecb375d8a7c542669dad96541582d (patch) | |
tree | 66d95d8ac395ce244ab103e6e77bb2fa10efd087 /railties/lib/rails/commands/runner.rb | |
parent | a060c41ef77cf3a0e4d236a70f3fef260ff9a261 (diff) | |
download | rails-1fed1f14fc0ecb375d8a7c542669dad96541582d.tar.gz rails-1fed1f14fc0ecb375d8a7c542669dad96541582d.tar.bz2 rails-1fed1f14fc0ecb375d8a7c542669dad96541582d.zip |
Fix `rails db -h` and cosmetic fixes in usage banners
Ruby tries to use '-h' as short version of '--header' by default
https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1372-1381.
To force `rails db -h` prints an usage message we should add the `-h`
options explicitly.
Diffstat (limited to 'railties/lib/rails/commands/runner.rb')
-rw-r--r-- | railties/lib/rails/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index 2802981e7a..77f1b15fb4 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -9,7 +9,7 @@ if ARGV.first.nil? end ARGV.clone.options do |opts| - opts.banner = "Usage: runner [options] ('Some.ruby(code)' or a filename)" + opts.banner = "Usage: rails runner [options] ('Some.ruby(code)' or a filename)" opts.separator "" |