Hello.
I'd like the output produced by Arg.usage to be written to stdout rather than stderr, without having to restructure my entire older program. Here's my attempt:
Unix.dup2 Unix.stdout Unix.stderr; (* send output to stdout. *)
Arg.usage (Arg.align (hiddenhelp @ options)) “”
(The program exits afterwards, so I assume there's nothing we must restore…).
On Unix this works, but Windows produces nothing on either stdout or stderr. The entry for dup2 in the Unix documentation doesn't mention anything about Windows.
Any suggestions?