Command Line Utility Library

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 15 18:46:53 PDT 2016


On Tuesday, 16 August 2016 at 01:23:16 UTC, UDW wrote:
> On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote:
>
>> [...]
>
> 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

Have you had a detailed look at std.getopt?
https://dlang.org/phobos/std_getopt.html

That's very similar to commander.js ;-)



More information about the Digitalmars-d-learn mailing list