getopt usage help to stderr?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Apr 8 20:21:24 UTC 2025


I think that you are almost there.

https://dlang.org/phobos/std_getopt.html#.defaultGetoptFormatter

Try using: https://dlang.org/phobos/std_stdio.html#.File.lockingTextWriter

``defaultGetoptFormatter(stderr.lockingTextWriter, "heading", 
helpInformation.options);``



More information about the Digitalmars-d-learn mailing list