clap v3 Update – No More Strings

Uncategorized
This is the second post in a series detailing the issues, progress, and design decisions used in clap v3. This post details removing the "stringly typed" nature of clap. NOTE: This post uses String heavily, however, the acutal clap code doesn't usually deal in Strings per se. Usually &str to keep from allocating more than absolutely required. But for simplicity sake, I'll be using String the majority of the time in this post. Issue: Removing Strings One of the biggest complaints about clap is the “stringly typed” nature of arguments. You give each argument a string name, and retrieve their value by string. [crayon-5c92d43e9b59a593998891/] You may have noticed I capitalized the W in the value retrieval, but not the definition….that's exactly what could go wrong! To make matters worse if…
Read More

clap v3 Update – Structopt

Uncategorized
I want to put out some notes on why clap v3 is taking so long. I'd also like to spell out what exactly I've been doing over the past few months and why there hasn't appeared to be much progress publicly. With clap v3 there have been two primary issues preventing a speedy release. The first has been my limited time available to dedicate to clap. Late last year I switched jobs, moved houses, and had a baby. Oh and holiday season. The new job has been much more demanding of my time than my previous gig, which means less time for open source. I've considered trying to get some corporate "sponsorship" (i.e. just work letting me work on open source on the clock), but at the current job that…
Read More