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 logo

Latest blogs

Tuning your Weight Loss vs Performance
January 15, 2018
This is a follow up from my previous post. In that post, I conjectured that turning on LTO (Link Time Optimization) and increasing the optimization levels would...
New Years Weight Loss
January 9, 2018
Preface: This post is somewhat hard to write, because it contains code that I'm not proud of, it's messy...bloated...it's real. I'm exposing something, in a pro...

Contact Us

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

  • kbknapp@gmail.com