fix: use config file path from cli params

main
Jan Christian Grünhage 2 years ago
parent 48a5972aaf
commit 131fbeea11
  1. 2
      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(())
}

Loading…
Cancel
Save