savonet / ocaml-posix

Bindings to the various POSIX APIs
https://www.liquidsoap.info/ocaml-posix/
MIT License
27 stars 2 forks source link

getopt: print_error true seems to have no effect #3

Open wizeman opened 3 years ago

wizeman commented 3 years ago

On Linux, when calling print_error true followed by getopt_long, no error messages get printed when the user passes a wrong option.

toots commented 3 years ago

Hi! Thanks for this report. Oh boy, I haven't looked at this code in a while. What distribution are you using? These things can be very distro-specific..

wizeman commented 3 years ago

I'm using NixOS 20.09. Thank you!