Registry / cli / pico-args

pico-args

JSON →
library0.5.0rscratesunverified

An ultra simple CLI arguments parser for Rust.

# Cargo.toml [dependencies] pico-args = "0.5.0"
INSTALL
IMPORT
SIG · PICO-ARGS
P
pico-args
clirustv0.5.0
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.

Arguments
use pico_args::Arguments;

Parsing a --name argument from command line.

use pico_args::Arguments; fn main() { let mut args = Arguments::from_env(); let name: String = args.value_from_str("--name").unwrap_or_else(|_| "world".to_string()); println!("Hello, {}!", name); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
pico-args — cargo add pico-args · libregistry