Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clap-rs/clap
A full featured, fast Command Line Argument Parser for Rust
https://github.com/clap-rs/clap
argument-parser argument-parsing command-line command-line-parser parsed-arguments positional-arguments rust subcommands
Last synced: 6 days ago
JSON representation
A full featured, fast Command Line Argument Parser for Rust
- Host: GitHub
- URL: https://github.com/clap-rs/clap
- Owner: clap-rs
- License: apache-2.0
- Created: 2015-02-25T13:36:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-10T16:24:13.000Z (16 days ago)
- Last Synced: 2025-01-20T01:16:10.238Z (6 days ago)
- Topics: argument-parser, argument-parsing, command-line, command-line-parser, parsed-arguments, positional-arguments, rust, subcommands
- Language: Rust
- Homepage: docs.rs/clap
- Size: 19.1 MB
- Stars: 14,629
- Watchers: 68
- Forks: 1,069
- Open Issues: 345
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
- Citation: CITATION.cff
Awesome Lists containing this project
- awesome-rust-cn - clap-rs - line argument parser [<img src="https://api.travis-ci.com/clap-rs/clap-rs.svg?branch=master">](https://travis-ci.org/clap-rs/clap-rs) (Libraries / Command-line)
- awesome-rust - clap-rs - line argument parser [<img src="https://api.travis-ci.com/clap-rs/clap-rs.svg?branch=master">](https://travis-ci.org/clap-rs/clap-rs) (Libraries / Command-line)
- awesome-cli-frameworks - Clap
- awesome-ccamel - clap-rs/clap - A full featured, fast Command Line Argument Parser for Rust (Rust)
- awesome-rust - clap-rs - line argument parser (Libraries / Command-line)
- awesome-rust-cn - clap-rs
- awesome-list - clap - rs | 6348 | (Rust)
- awesome-rust-zh - clap-rs - 一个简单易用,功能齐全的命令行参数解析器[<img src="https://api.travis-ci.com/clap-rs/clap-rs.svg?branch=master">](https://travis-ci.org/clap-rs/clap-rs) (库 / 命令行)
- awesome-rust - clap-rs - A simple to use, full featured command-line argument parser (Libraries / Command-line)
- awesome-rust - clap-rs - line argument parser [<img src="https://api.travis-ci.com/clap-rs/clap-rs.svg?branch=master">](https://travis-ci.org/clap-rs/clap-rs) (库 Libraries / 命令行 Command-line)
- awesomeLibrary - clap - A full featured, fast Command Line Argument Parser for Rust (语言资源库 / rust)
- StarryDivineSky - clap-rs/clap
- fucking-awesome-rust - clap-rs - A simple to use, full featured command-line argument parser (Libraries / Command-line)
- fucking-awesome-rust - clap-rs - A simple to use, full featured command-line argument parser (Libraries / Command-line)
README
# clap
> **Command Line Argument Parser for Rust**
[![Crates.io](https://img.shields.io/crates/v/clap?style=flat-square)](https://crates.io/crates/clap)
[![Crates.io](https://img.shields.io/crates/d/clap?style=flat-square)](https://crates.io/crates/clap)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square)](LICENSE-APACHE)
[![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE-MIT)
[![Build Status](https://img.shields.io/github/actions/workflow/status/clap-rs/clap/ci.yml?branch=master&style=flat-square)](https://github.com/clap-rs/clap/actions/workflows/ci.yml?query=branch%3Amaster)
[![Coverage Status](https://img.shields.io/coveralls/github/clap-rs/clap/master?style=flat-square)](https://coveralls.io/github/clap-rs/clap?branch=master)
[![Contributors](https://img.shields.io/github/contributors/clap-rs/clap?style=flat-square)](https://github.com/clap-rs/clap/graphs/contributors)Dual-licensed under [Apache 2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT).
## About
Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.
For more details, see:
- [docs.rs](https://docs.rs/clap/latest/clap/)
- [examples](examples/)## Sponsors
### Gold
[![](https://opencollective.com/clap/tiers/gold.svg?avatarHeight=36&width=600)](https://opencollective.com/clap)
### Silver
[![](https://opencollective.com/clap/tiers/silver.svg?avatarHeight=36&width=600)](https://opencollective.com/clap)
### Bronze
[![](https://opencollective.com/clap/tiers/bronze.svg?avatarHeight=36&width=600)](https://opencollective.com/clap)
### Backer
[![](https://opencollective.com/clap/tiers/backer.svg?avatarHeight=36&width=600)](https://opencollective.com/clap)