diff options
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/commands/plugin.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 3dff1ce5ba..fcf7ca6497 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Show usage when script/plugin is called without arguments [tom@craz8.com] + * Corrected problems with plugin loader where plugins set 'name' incorrectly #3297 [anna@wota.jp] * Make migration generator only report on exact duplicate names, not partial dupliate names. #3442 [jeremy@planetargon.com Marcel Molina Jr.] diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 0cb9b83894..f3bea4ce8f 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -444,7 +444,7 @@ module Commands command.parse!(sub) else puts "Unknown command: #{command}" - puts "Try: #{$0} --help" + puts options exit 1 end end |