Dynamic Options with OCaml’s Arg Library

J. Wied 2026-06-10 Dynamic Options with OCaml s Arg Library The compiler I m working on accepts several options - like most other command line programs. However, I wanted to allow only some combinations. E.g. in -i interpret -msp430 [mcu] compile for some MSP430 MCU -S emit assembly code the -S should only be valid with -msp430 . Turns out you can implement this restrictions with OCaml s Arg…