Back to rankings

clap-rs/clap

Rustdocs.rs/clap

A full featured, fast Command Line Argument Parser for Rust

argument-parsingsubcommandsrustpositional-argumentsparsed-argumentscommand-linecommand-line-parserargument-parser
Star Growth
Stars
16.6k
Forks
1.2k
Weekly Growth
Issues
375
5k10k15k
Mar 2015Dec 2018Oct 2022Jul 2026
Artifactscrates.iocargo add clap
README

clap

Command Line Argument Parser for Rust

Crates.io Crates.io License License Build Status Coverage Status Contributors

Dual-licensed under Apache 2.0 or MIT.

Get Started

$ cargo add clap

About

Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.

For more details, see:

Sponsors

Gold

Silver

Bronze

Backer

Related repositories
remkop/picocli

Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.

JavaMavenApache License 2.0javacommandline
picocli.info
5.4k472
mattallty/Caporal.js

A full-featured framework for building command line applications (cli) with node.js

TypeScriptnpmMIT Licenseclicli-app
3.5k94
ajalt/clikt

Multiplatform command line interface parsing for Kotlin

KotlinApache License 2.0kotlinkotlin-library
ajalt.github.io/clikt/
3k133
alexflint/go-arg

Struct-based argument parsing in Go

GoGo ModulesBSD 2-Clause "Simplified" Licenseargument-parsinggolang
pkg.go.dev/github.com/alexflint/go-arg
2.3k114
Taywee/args

A header-only C++ argument parser library. Supposed to be flexible and powerful, and attempts to be compatible with the functionality of the Python standard argparse library (though not necessarily the API).

C++MIT Licenseargsargument-parsing
taywee.github.io/args/
1.6k182
Hejsil/zig-clap

Command line argument parsing library

ZigMIT Licensezig-packageargument-parser
1.6k99
matejak/argbash

Bash argument parsing code generator

M4Otherargument-parsingshell-scripts
argbash.dev
1.5k66
muellan/clipp

easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation

C++MIT Licensecppcpp11
1.3k154
brentyi/tyro

CLI interfaces & config objects, from types

PythonPyPIMIT Licenseargparseargument-parsing
brentyi.github.io/tyro
1.1k46