make config PathBuf instead of String

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-13 02:12:14 -04:00 committed by June
parent 0db3a43d1f
commit be5c13ab0d

View file

@ -1,5 +1,7 @@
//! Integration with `clap` //! Integration with `clap`
use std::path::PathBuf;
use clap::Parser; use clap::Parser;
/// Commandline arguments /// Commandline arguments
@ -8,7 +10,7 @@ use clap::Parser;
pub struct Args { pub struct Args {
#[arg(short, long)] #[arg(short, long)]
/// Optional argument to the path of a conduwuit config TOML file /// Optional argument to the path of a conduwuit config TOML file
pub config: Option<String>, pub config: Option<PathBuf>,
} }
/// Parse commandline arguments into structured data /// Parse commandline arguments into structured data