add -i option as a requirement

bug/bundler_fix
Rob Fuller 2014-02-18 14:08:57 -05:00
parent fadb688143
commit b19a652d78
1 changed files with 4 additions and 1 deletions

View File

@ -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