1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

indicate when options are invalid

This commit is contained in:
Charles Lowell 2010-03-22 10:36:16 -05:00
parent 2f92e06c16
commit 2119267301

View file

@ -18,7 +18,12 @@ module V8
puts parser
exit
end
parser.parse!(args.dup)
begin
parser.parse!(args.dup)
rescue OptionParser::InvalidOption => e
puts "#{exename}: #{e.message}"
exit(1)
end
if options.version_info
puts "The Ruby Racer #{V8::VERSION}"
puts "V8 Version 2.0.6"