mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-28 10:48:30 +00:00
16 lines
374 B
Rust
16 lines
374 B
Rust
|
//! Integration with `clap`
|
||
|
|
||
|
use clap::Parser;
|
||
|
|
||
|
/// Commandline arguments
|
||
|
#[derive(Parser, Debug)]
|
||
|
#[clap(version, about, long_about = None)]
|
||
|
pub struct Args {
|
||
|
#[arg(short, long)]
|
||
|
/// Optional argument to the path of a conduwuit config TOML file
|
||
|
pub config: Option<String>,
|
||
|
}
|
||
|
|
||
|
/// Parse commandline arguments into structured data
|
||
|
pub fn parse() -> Args { Args::parse() }
|