# argv-lite-derive
[](https://crates.io/crates/argv-lite-derive)
[](https://docs.rs/argv-lite-derive)
[](https://github.com/yourusername/argv-lite/blob/main/LICENSE)
A procedural macro crate for [`argv-lite`](https://github.com/enterprise-search/argv-lite), providing derive macros for ergonomic command-line argument parsing.
## Features
- Derive macros for struct-based CLI argument parsing
- Built on top of [`syn`](https://crates.io/crates/syn) and [`quote`](https://crates.io/crates/quote)
- Designed for use with the `argv-lite` ecosystem
## Usage
Add to your `Cargo.toml`:
```toml
[dependencies]
argv-lite = "0.1"
argv-lite-derive = "0.1"
```
Annotate your struct with the derive macro:
```rust
use argv_lite_derive::ArgvLite;
#[derive(ArgvLite)]
struct Args {
#[arg(short = 'v', long = "verbose")]
verbose: bool,
#[arg(short = 'o', long = "output")]
output: Option<String>,
}
```
## Documentation
See [docs.rs/argv-lite-derive](https://docs.rs/argv-lite-derive) for full API documentation.
## License
Licensed under either of:
- MIT license ([LICENSE-MIT](../LICENSE-MIT) or http://opensource.org/licenses/MIT)
## Contribution
Contributions are welcome! Please see [CONTRIBUTING.md](../CONTRIBUTING.md) for guidelines.