fix: use config file path from cli params

This commit is contained in:
Jan Christian Grünhage 2020-10-27 10:20:26 +01:00
parent 48a5972aaf
commit 131fbeea11
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ async fn login_and_sync(config: Config) -> Result<()> {
async fn main() -> Result<()> { async fn main() -> Result<()> {
let matches = config::setup_clap(); let matches = config::setup_clap();
config::setup_logging(matches.occurrences_of("v")); 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?; login_and_sync(config).await?;
Ok(()) Ok(())
} }