···15151616### Tools:
17171818+* #13638: ocamlmklib exits with code 4 if passed an unrecognised option, as it
1919+ does with an unrecognised file.
2020+ (David Allsopp, review by Antonin Décimo and Sébastien Hinderer)
2121+1822### Manual and documentation:
19232024### Compiler user-interface and warnings:
+1-1
tools/ocamlmklib.ml
···165165 else if s = "-framework" then
166166 (let a = next_arg s in c_opts := a :: s :: !c_opts)
167167 else if starts_with s "-" then
168168- prerr_endline ("Unknown option " ^ s)
168168+ raise (Bad_argument("Unknown option " ^ s))
169169 else
170170 raise (Bad_argument("Don't know what to do with " ^ s))
171171 done;