use-flag
Primitive short, long, and boolean flag types for CLI-adjacent Rust code.
use-flag validates flag names and stores flag intent. It does not scan an argv stream, expand combined short flags, define negation policy, or implement a parser.
Example
use ;
let flag = try_from_token?;
let verbose = enabled;
assert!;
assert_eq!;
# Ok::
Scope
Use this crate for small flag vocabulary. Use a parser framework when you need parsing, validation across multiple tokens, or derived command definitions.