clap

Fast. Configurable. Argument Parsing for Rust

About

clap or Command Line Argument Parser

Is a simple-to-use, efficient, and fully-configurable library for parsing command line arguments.

clap supports advanced features like argument relationships, subcommands, and much, much more.

A Quick Taste

The following Rust code is all it takes to get started:

 

If the user runs  $ myapp --help  the following would be printed

 

Features

Fast

Configurable

Standards Based

Effortless Auto Completion

Spend time building your application

Why Choose clap

Automatic Help
clap generates your help message and usage strings for you automatically from the list of valid argu...
User Suggestions
If the end user has a typo, clap will gently suggest a correction based on the current context. I...
Friendly Errors
clap generates friendly, and informative error messages. These messages kindly inform the end user o...
Intuitive
clap is extremely easy and intuitive to use. In fact, it’s so intuitive that all you may need is
Relationships
One can define argument relationships easily, and intuitively. This includes everything from require...
YAML Support
You can define your list of valid arguments in a YAML file, keeping your main.rs clean and tidy.

Meet the Team

Kevin K.
Owner

OUR FACTS

99
crates.io downloads
99
github stars
99
Dependant Repositories
99
amazing contributors

Sponsors

logo logo

Latest blogs

3.x is being worked on!
August 9, 2017
Since my last post, countless bug fixes, features, etc. have been merged into the project. There's also a wave of new contributors who I'm immensely grateful fo...
Using Shell Completions
October 25, 2016
It's been quite a while since I wrote anything blog-ish about clap, or anything else for that matter. I've had quite a few ideas that I've wanted to talk about,...

Contact Us

  • Contact us at any of the given locations below, also on our Github or Gitter pages above!

  • kbknapp@gmail.com