Command line parsing

Jesse Phillips via Digitalmars-d digitalmars-d at puremagic.com
Thu May 12 11:25:37 PDT 2016


On Monday, 2 May 2016 at 12:52:42 UTC, Andrei Alexandrescu wrote:
> I found this in 
> https://peter.bourgon.org/go-best-practices-2016/:

> This is interesting because it's what std.getopt does but the 
> opposite of what GFLAGS (http://gflags.github.io/gflags/) does. 
> GFLAGS allows any module in a project to define flags. I was 
> thinking of adding GFLAGS-like capabilities to std.getopt but 
> looks like there's no need to... thoughts?
>
>
> Andrei

I think it would be good for a module to be able to define its 
options and then main expressly pulls them in. This is kind of 
already possible with option.passThrough, but that makes managing 
unknown flags harder and displaying help challenging. So I'd like 
to see getopt merge with another getopt.


More information about the Digitalmars-d mailing list