Registry / cli / arrrg-derive

arrrg-derive

JSON →
library0.8.0rscratesunverified

Derive macro for arrrg::CommandLine.

# Cargo.toml [dependencies] arrrg_derive = "0.8.0"
INSTALL
IMPORT
SIG · ARRRG-DERIVE
A
arrrg-derive
clirustv0.8.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.

CommandLine
use arrrg_derive::CommandLine;

Defines a command-line argument struct using the derive macro.

use arrrg_derive::CommandLine; #[derive(CommandLine)] struct Args { #[arg(short = 'n')] name: String, } fn main() { let args = Args::from_env().unwrap(); println!("Hello, {}!", args.name); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
36
Resources
arrrg-derive — cargo add arrrg-derive · libregistry