Command Line Utility Library

UDW via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 15 18:23:16 PDT 2016


On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote:

> Are you trying to parse arguments?
> There's a lot of good stuff for it already:
>
> https://dlang.org/phobos/std_getopt.html
> https://code.dlang.org/packages/darg
> https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/
>
>
> For configuration files:
>
> https://code.dlang.org/packages/onyx-config
> https://code.dlang.org/packages/inid
> https://code.dlang.org/packages/yamkeys
> https://code.dlang.org/packages/runtimer
> https://code.dlang.org/packages/variantconfig

Thanks for the suggestions Seb,
https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/
looks very nice :).

I just thought there would be a standard library, stdclib, phobos 
or otherwise for making CLI tools that would generate 
sub-commands, options, help text and handle input for it all. 
Unfortunately my gumby searching didn't find much yesterday. Sort 
of like this
https://github.com/tj/commander.js
which I found after a bit more searching.

ty again


More information about the Digitalmars-d-learn mailing list