Registry / cli / clap-lex

clap-lex

JSON →
library1.1.0rscratesunverified

Minimal, flexible command line parser providing low-level lexing for argument parsing.

# Cargo.toml [dependencies] clap_lex = "1.1.0"
INSTALL
IMPORT
SIG · CLAP-LEX
C
clap-lex
clirustv1.1.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.

Lexer
use clap_lex::Lexer;

Demonstrates basic lexing of command-line arguments into tokens.

use clap_lex::Lexer; fn main() { let input = "--name=value -f"; let mut lexer = Lexer::new(input); while let Some(token) = lexer.next() { println!("{:?}", token); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
clap-lex — cargo add clap-lex · libregistry