Skip to content

Commit 924d0ad

Browse files
authored
Merge pull request #156 from ekohl/make-invalid-options-fatal
Make passing invalid options to install.rb fatal
2 parents 831fd37 + 3e81a8a commit 924d0ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def prepare_installation
159159
end
160160

161161
opts.parse!
162+
rescue OptionParser::InvalidOption => e
163+
$stderr.puts e
164+
exit 1
162165
end
163166

164167
# Mac OS X 10.5 and higher declare bindir

0 commit comments

Comments
 (0)