Registry / cli / lapp
library0.4.0rscratesunverified

A simple command-line argument parser driven by usage text, inspired by docopt.

# Cargo.toml [dependencies] lapp = "0.4.0"
INSTALL
IMPORT
SIG · LAPP
L
lapp
clirustv0.4.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.

Lapp
use lapp::Lapp;

Parses command-line arguments based on a usage string.

use lapp::Lapp; fn main() { let args = Lapp::new("Usage: myapp [options]\nOptions: -n, --name <name> (default: World)") .parse(std::env::args().skip(1)); println!("Hello, {}!", args.get_string("name")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
lapp — cargo add lapp · libregistry