fix: use config file path from cli params
This commit is contained in:
parent
48a5972aaf
commit
131fbeea11
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue