diff --git a/src/main.rs b/src/main.rs index 8aeb9da..6e69d5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ async fn login_and_sync(config: Config) -> Result<()> { async fn main() -> Result<()> { let matches = config::setup_clap(); config::setup_logging(matches.occurrences_of("v")); - let config = config::read_config("config.toml").context("Couldn't load config")?; + let config = config::read_config(matches.value_of("config").unwrap()).context("Couldn't load config")?; login_and_sync(config).await?; Ok(()) }