getopt usage help to stderr?

Andy Valencia dont at spam.me
Wed Apr 9 02:28:35 UTC 2025


On Wednesday, 9 April 2025 at 01:23:01 UTC, Salih Dincer wrote:
> On Tuesday, 8 April 2025 at 20:14:56 UTC, Andy Valencia wrote:
>>
>> p.s. Ironically, I could probably have coded a getopt in less 
>> time than I've spent on std.getopt...
>
> :)
>
> Please try the following example with the parameters -h, -e, 
> -l, and -v in that order:
>...

Thank you.

It turned out, aside from treating stderr with lockingTextWriter, 
I had a couple "in" arguments, which defaultGetoptFormatter 
wouldn't accept.  So with all that cleared up, help is now 
available.  Thank you again (both of you) for the helpful 
examples!

Andy



More information about the Digitalmars-d-learn mailing list