getopt Basic usage

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


On Saturday, 15 August 2020 at 09:48:26 UTC, MoonlightSentinel 
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.
>
> Try passing config.passThrough, it should disable the exception 
> for unknown arguments.

Thanks a lot for the suggestion. But to me that will produce a 
program with very unusual behaviour (i.e. ignoring unrecognised 
arguments).


More information about the Digitalmars-d-learn mailing list