set cache location from cli args
This commit is contained in:
@@ -16,6 +16,7 @@ type args struct {
|
||||
UserdataDir string `arg:"--steam-userdata-dir" placeholder:"USERDATA_DIR" help:"Steam userdata directory. If not set, search automaticly."`
|
||||
DeviceID string `arg:"--device-id" default:"steam-immich" help:"Device ID of the uploads"`
|
||||
Album string `arg:"--album" help:"UUID of a album to upload to"`
|
||||
CacheFile string `arg:"--cache" default:"$XDG_CACHE_HOME/steam-immich.json" help:"Location of the cache file"`
|
||||
}
|
||||
|
||||
func Run() {
|
||||
@@ -43,6 +44,7 @@ func Run() {
|
||||
UserdataDir: steamUserdataDir,
|
||||
DeiveID: args.DeviceID,
|
||||
Album: args.Album,
|
||||
CacheFile: os.ExpandEnv(args.CacheFile),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user