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:
parent
2f92e06c16
commit
2119267301
1 changed files with 6 additions and 1 deletions
|
@ -18,7 +18,12 @@ module V8
|
||||||
puts parser
|
puts parser
|
||||||
exit
|
exit
|
||||||
end
|
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
|
if options.version_info
|
||||||
puts "The Ruby Racer #{V8::VERSION}"
|
puts "The Ruby Racer #{V8::VERSION}"
|
||||||
puts "V8 Version 2.0.6"
|
puts "V8 Version 2.0.6"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue