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:
		
						commit
						845783c93a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -44,7 +44,8 @@ async fn main() -> Result<()> {
 | 
				
			||||||
    let conf: Config = conf_extractor
 | 
					    let conf: Config = conf_extractor
 | 
				
			||||||
        .merge(FileAdapter::wrap(Env::prefixed("IMMICH_TOOLS_")))
 | 
					        .merge(FileAdapter::wrap(Env::prefixed("IMMICH_TOOLS_")))
 | 
				
			||||||
        .merge(Serialized::defaults(&args))
 | 
					        .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)?;
 | 
					    let client = get_client(&conf.server_url, &conf.api_key)?;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue