Please-clap: Pattern match against clap subcommands and arguments


#1

Hey, first time poster here…

I’ve just published please-clap to make subcommand dispatch and argument extraction in Clap a little less verbose.

Currently it contains a single macro which lets you sort-of pattern match against a clap::ArgMatches object. See the docs for an example.

The whole thing is less than 100 lines, but as macro logic can be (is!) quite convoluted I decided it would be useful have it in a separate package.