From 32f89dc10b4ec3fe68d65a77d10261373f0d0962 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 14 Jan 2006 09:00:48 +0000 Subject: 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 --- railties/lib/commands/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/commands/plugin.rb') 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 -- cgit v1.2.3