diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-01-14 09:00:48 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-01-14 09:00:48 +0000 |
commit | 32f89dc10b4ec3fe68d65a77d10261373f0d0962 (patch) | |
tree | 8420a460d7000690aafe5ebf6b7a7215f1e88b74 /railties/lib/commands | |
parent | 6258829ebf4cad5cbc487b87799d1d40c04a66c4 (diff) | |
download | rails-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
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |