Registry / cli / paw
library1.0.0rscratesunverified

A CLI argument parser that derives from struct definitions.

# Cargo.toml [dependencies] paw = "1.0.0"
INSTALL
IMPORT
SIG · PAW
P
paw
clirustv1.0.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.

ParseArgs
✓ use paw::ParseArgs;

Define CLI arguments via a struct and parse them.

use paw::ParseArgs; #[derive(ParseArgs)] struct Args { name: String, count: u32, } fn main() { let args = Args::parse(); println!("Hello {}! Count: {}", args.name, args.count); }
Debug
Known issues
gotchaRequires the `paw` derive macro; ensure `paw` is imported with `use paw::ParseArgs`.
fix
Add `paw = "1.0"` to Cargo.toml and import the trait.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
paw — cargo add paw · libregistry