make plugin name parameter required

Fixes #5355
This commit is contained in:
Philippe Weber 2016-05-24 23:15:15 +02:00 committed by Suyog Rao
parent 53c0bc1cf7
commit 0665497ca5

View file

@ -14,7 +14,7 @@ class LogStash::PluginManager::Generate < LogStash::PluginManager::Command
arg
end
option "--name", "PLUGIN", "Name of the new plugin"
option "--name", "PLUGIN", "Name of the new plugin", :required => true
option "--path", "PATH", "Location where the plugin skeleton will be created", :default => Dir.pwd
def execute