diff --git a/tools/makeiplist.rb b/tools/makeiplist.rb index f9bfe7d641..70ff4a055f 100755 --- a/tools/makeiplist.rb +++ b/tools/makeiplist.rb @@ -54,7 +54,10 @@ Usage: #{__FILE__} [options]| begin opts.parse!(args) - + if options['input'] == nil + puts opts + raise OptionParser::MissingArgument, "-i is a required option" + end unless ::File.exists?(options['input']) raise OptionParser::InvalidArgument, "Not found: #{options['input']}" end