The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #13638 from dra27/ocamlmklib-unknown

Make ocamlmklib fail on unknown parameter

authored by

Gabriel Scherer and committed by
GitHub
c9ee4f41 5b8bcc0e

+5 -1
+4
Changes
··· 15 15 16 16 ### Tools: 17 17 18 + * #13638: ocamlmklib exits with code 4 if passed an unrecognised option, as it 19 + does with an unrecognised file. 20 + (David Allsopp, review by Antonin Décimo and Sébastien Hinderer) 21 + 18 22 ### Manual and documentation: 19 23 20 24 ### Compiler user-interface and warnings:
+1 -1
tools/ocamlmklib.ml
··· 165 165 else if s = "-framework" then 166 166 (let a = next_arg s in c_opts := a :: s :: !c_opts) 167 167 else if starts_with s "-" then 168 - prerr_endline ("Unknown option " ^ s) 168 + raise (Bad_argument("Unknown option " ^ s)) 169 169 else 170 170 raise (Bad_argument("Don't know what to do with " ^ s)) 171 171 done;