alvistar / immich-albums

Create immich albums from folder structure
MIT License
38 stars 7 forks source link

Config file doesn't work? #10

Closed lnicola closed 4 weeks ago

lnicola commented 3 months ago

I have this config.yaml:

---
 api-key: 'hello'
 api-host: 'http://127.0.0.1:2283/api'
 original-path: '/tank/path'
 replace-path: '/usr/src/app/external'

(also tried without --- and quotes)

But I get:

$ im -r --dry-run --config config.yaml /tank/path
Loading config from: config.yaml
Usage: im [OPTIONS] PATH
Try 'im --help' for help.

Error: Missing option '--api-key'.

Probably missing something though.

ciltocruz commented 3 months ago

Same for me

ChrislyBear-GH commented 3 months ago

Same.

alvistar commented 4 weeks ago

Issue is that variables in yaml should use underscore instead of hypen.

Ex. api_key instead of api-key

It was already working but documentation was wrrong. I updated it.