diff --git a/status_cloud/src/main.rs b/status_cloud/src/main.rs index 85138b3..e92f08f 100644 --- a/status_cloud/src/main.rs +++ b/status_cloud/src/main.rs @@ -2,7 +2,7 @@ use clap::Parser; use log::{debug, error, warn}; use reqwest::blocking::Client; use serde::{Deserialize, Serialize}; -use std::process::Command; +use std::{process::Command, path::PathBuf}; fn main() -> Result<(), Box> { let args = CliArgs::parse(); @@ -19,7 +19,7 @@ fn main() -> Result<(), Box> { ); } - debug!("Opening Config file: {}", args.config_file); + debug!("Opening Config file: {}", args.config_file.display()); debug!( "Config file exists: {}", std::fs::metadata(&args.config_file).is_ok() @@ -140,7 +140,7 @@ struct Config { struct CliArgs { /// Path to config .toml file #[arg(short, long)] - config_file: String, + config_file: PathBuf, #[arg(short, long)] hddtemp_executable: String,