make config PathBuf instead of String
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0db3a43d1f
commit
be5c13ab0d
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
//! Integration with `clap`
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
/// Commandline arguments
|
||||
|
@ -8,7 +10,7 @@ use clap::Parser;
|
|||
pub struct Args {
|
||||
#[arg(short, long)]
|
||||
/// 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
|
||||
|
|
Loading…
Add table
Reference in a new issue