Hello.
I would like to have the output of Arg.usage appear on stdout instead of stderr, and I don’t want to re-work my whole (old) program. So I try:
Unix.dup2 Unix.stdout Unix.stderr; (* output on stdout instead. *)
Arg.usage (Arg.align (nohelp @ specs)) “”
(The program then exits, so we don’t need to restore anything, I think…).
This is fine on Unix, but on Windows no output is produced on either stdout or stderr. There is no note about Windows in the Unix documentation for dup2.
Any ideas?