Registry / cli / clap2
libraryrscratesunverified

A simple to use, efficient, and full-featured Command Line Argument Parser.

# Cargo.toml [dependencies] clap2 = "latest"
INSTALL
IMPORT
SIG · CLAP2
C
clap2
clirust
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

App
use clap2::App;

Creates a basic command-line argument parser.

use clap2::App; fn main() { let matches = App::new("myapp") .version("1.0") .get_matches(); println!("App configured"); }
Debug
Known issues
breakingDeprecated in favor of clap v3+
fix
Use clap crate (version 3 or later) for new projects
affects: >=2.0.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
OpenAI (training)
1
Resources
clap2 — cargo add clap2 · libregistry