New library: argparse, for parsing CLI arguments
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.com
Wed Oct 13 19:26:49 UTC 2021
On 2021-10-13 7:27, Andrey Zherikov wrote:
> Hi everyone,
>
> I'm happy to announce that I've published a CLI argument parsing library
> - [argparse](https://code.dlang.org/packages/argparse). It's been around
> for some time already so please take a look and provide your feedback if
> you haven't done so.
>
> The reasoning to create one more CLI parsing library is that the
> existing libraries do not provide enough flexibility in parsing that I'm
> looking for and/or they depend on other libraries. As a result
> `argparse` supports wide variety of data types including enums,
> callbacks and arrays as well as a fully customized argument parsing. It
> also doesn't depend on anything besides the standard library.
>
> Since it's in active development (activeness depends on my availability
> of course), I have few things to do before making the first major
> release so stay tuned and/or contribute if you'd like to.
Cool!
One note - gflags (https://opensource.google/projects/gflags) allows
modules to define their own flags in a decentralized manner. I've always
thought this is a major feature missing from std.getopt, but never got
around to it. It would be great if argparse would add such support.
More information about the Digitalmars-d-announce
mailing list