argparse version 1.0.0
Andrey Zherikov
andrey.zherikov at gmail.com
Fri Jun 10 14:14:27 UTC 2022
On Friday, 10 June 2022 at 09:20:24 UTC, Vladimir Panteleev wrote:
> Congratulations on the release. Though there's a good number of
> libraries for this task in D already, this solution looks very
> complete.
I looked at them when I started this project and they didn't
provide complete set of features I was looking for. That was the
main reason to start this work.
> I was wondering if you ran into any strong reasons for
> describing the arguments as a struct, rather than, well,
> function arguments. I have had good success so far with the
> latter, which has the benefit of being succinct:
>
> https://github.com/CyberShadow/btdu/blob/116d190079ca77d61383eb738defa4318d5a1e5f/source/btdu/main.d#L59
This is an interesting approach. I think they are equivalent for
simple cases but how would you model subcommands with common
arguments for all of them?
More information about the Digitalmars-d-announce
mailing list