Merge branch 'missing-args-context' into 'main'

Add some context on missing arguments

See merge request kernald/immich-tools!12
This commit is contained in:
Marc Plano-Lesay 2024-11-04 22:31:48 +00:00
commit 845783c93a

View file

@ -44,7 +44,8 @@ async fn main() -> Result<()> {
let conf: Config = conf_extractor
.merge(FileAdapter::wrap(Env::prefixed("IMMICH_TOOLS_")))
.merge(Serialized::defaults(&args))
.extract()?;
.extract()
.wrap_err_with(|| "Invalid configuration or insufficient command line arguments")?;
let client = get_client(&conf.server_url, &conf.api_key)?;