Become a contributor
Financial contributions
Goal
Bronze
$200 USD / month goal
$0.00 USD / month raised (0%)
Help development by funding some minor issues every month. (+ Backer) Read more
$25 USD / month
Membership
Silver
Contribute to our roadmap. You can assign an issue as high priority (at most 1 at any time). (+ B... Read more
$50 USD / month
Membership
Gold
Contribute to our roadmap. You can assign an issue as high priority (at most 2 at any time). (+ B... Read more
$100 USD / month
What's new with Clap
Stay up to dates with our latest activities and progress.
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...
Read morePublished on May 27, 2020 by Pavan Kumar Sunkara
Clap is all of us
Our contributors 2
Everyone who has supported Clap. Individuals and organizations that believe in –and take ownership of– our purpose.
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.

