getopt Basic usage

mw mingwu at gmail.com
Sat Aug 15 04:39:58 UTC 2020


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




More information about the Digitalmars-d-learn mailing list