Files
continuwuity/src/clap.rs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
374 B
Rust
Raw Normal View History

2024-03-12 22:20:03 -04:00
//! 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() }