Registry / cli / lexopt

lexopt

JSON →
library0.3.2rscratesunverified

A minimalist, pedantic command-line argument parser for Rust.

# Cargo.toml [dependencies] lexopt = "0.3.2"
INSTALL
IMPORT
SIG · LEXOPT
L
lexopt
clirustv0.3.2
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.

Parser
use lexopt::Parser;

Parses command-line arguments one at a time.

use lexopt::Parser; fn main() -> Result<(), lexopt::Error> { let mut parser = Parser::from_env(); if let Some(arg) = parser.next()? { println!("Got argument: {:?}", arg); } Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Amazon
1
Resources
lexopt — cargo add lexopt · libregistry