aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-01-14 09:00:48 +0000
committerMichael Koziarski <michael@koziarski.com>2006-01-14 09:00:48 +0000
commit32f89dc10b4ec3fe68d65a77d10261373f0d0962 (patch)
tree8420a460d7000690aafe5ebf6b7a7215f1e88b74
parent6258829ebf4cad5cbc487b87799d1d40c04a66c4 (diff)
downloadrails-32f89dc10b4ec3fe68d65a77d10261373f0d0962.tar.gz
rails-32f89dc10b4ec3fe68d65a77d10261373f0d0962.tar.bz2
rails-32f89dc10b4ec3fe68d65a77d10261373f0d0962.zip
Show usage when script/plugin is called without arguments. Closes #3450
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/lib/commands/plugin.rb2
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