Today's Balance
$445.03
Rainy Day Fund
$700
Estimated Annual Budget
$1,101

Contribute
Become a financial contributor.
Goal
Bronze
$200 USD / month goal
$0.00 USD / month raised (0%)
Help development by funding some minor issues every month. (+ Backer) Read more
Starts at
$25 USD / month
Top financial contributors
Individuals
repi
$30 USD since Aug 2020
Xidorn Quan
$12 USD since Aug 2020
Matt Coffin
$10 USD since Oct 2020
Praveen Perera
$5 USD since Aug 2020
pinage404
$2 USD since Oct 2020
Organizations
Embark
$600 USD since Aug 2020
Clap is all of us
Our contributors 8
Everyone who has supported Clap. Individuals and organizations that believe in –and take ownership of– our purpose.

Connect
Let’s get the ball rolling!
What's new with Clap
Stay up to dates with our latest activities and progress.
Faster development with tiny bounties
When we started Open Source Collective for Clap, we (the maintainers) had a discussion on what to do with the money. We have some maintenance expenses @kbknapp is currently paying out of his pocket every ye...
Published on August 14, 2020 by Pavan Kumar Sunkara
Clap on OpenCollective
Your favourite CLI framework is now on OpenCollective.We are opening this to offset some maintenance costs and also fund some minor issues in the future in order to engage more outside contributors.We would also love to send some free sw...
Published on May 27, 2020 by Pavan Kumar Sunkara

Budget
Transparent and open finances.
Today’s balance
$445.03 USD
Estimated annual budget
~ $1,101.44 USD

About
Clap is used to parse and validate the string of command line arguments provided by a user at runtime. You provide the list of valid possibilities, and clap handles the rest. This means you focus on your applications functionality, and less on the parsing and validating of arguments.
Clap provides many things 'for free' (with no configuration) including the traditional version and help switches (or flags) along with associated messages. If you are using subcommands, clap will also auto-generate a help subcommand and separate associated help messages.
Once clap parses the user provided string of arguments, it returns the matches along with any applicable values. If the user made an error or typo, it informs them with a friendly message and exits gracefully (or returns a Result type and allows you to perform any clean up prior to exit). Because of this, you can make reasonable assumptions in your code about the validity of the arguments prior to your applications main execution.