getopt Basic usage

James Gray test at test.com
Sun Aug 16 02:10:43 UTC 2020


On Saturday, 15 August 2020 at 04:39:58 UTC, mw wrote:
> On Saturday, 15 August 2020 at 04:09:19 UTC, James Gray wrote:
>> I am trying to use getopt and would not like the program to 
>> throw an unhandled exception when parsing command line 
>> options. Is the following, adapted from the first example in 
>> the getopt documentation, a reasonable approach?
>
> life is short, use a good library (instead of the raw std lib, 
> or re-invent the wheels):
>
> https://code.dlang.org/packages/commandr

I will have a look at that. Thanks.


More information about the Digitalmars-d-learn mailing list