qmetrics.net

clap

Rust command-line argument parsing library

Frameworks & PlatformsDesktop/CLI app
clap screenshot

clap is a Rust crate for defining and parsing command-line interfaces declaratively or imperatively. It generates help text, suggestions, colors, and shell completions for CLI tools.

Overview

clap lets Rust projects describe commands, flags, positional arguments, subcommands, and value parsers through a builder API or derive macros on structs. Parsed results land in a structured matches container for application logic. The crate aims for polished CLI behavior including common conventions, error formatting, and discoverable help output.

The project supports feature flags to trim dependencies, semver-style release pacing, and maintenance under the Rust WG-CLI umbrella. Ecosystem crates extend it with shell completions, man page generation, wildcard expansion on Windows, argfiles, internationalized errors, and Cargo.toml metadata integration.

Developers choose clap when they need flexible CLI layout without hand-rolling parsers, while accepting compile-time and binary-size trade-offs compared with minimal parsers. Documentation covers derive and builder tutorials, a cookbook, CLI concepts, and migration notes across major versions.

Key features

  • Derive and builder APIs
  • Subcommands and argument groups
  • Help and version generation
  • Shell completion support
  • Colored error output
  • Feature-flag modular builds
  • Cargo.toml metadata macros
  • Value parser type integration

Use cases

  • Rust CLI application parsing
  • Multi-subcommand developer tools
  • Generated help and completions
  • Structured flag validation
  • Workspace-wide CLI consistency

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT