You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
ConfigFilestring`short:"c" long:"config-file" description:"configuration file (see 'arlo-dl setup', default: $HOME/.arlo-dl.yaml)"`
28
34
OutputDirstring`short:"o" long:"output-dir" description:"location to store recordings" default:"arlo-recordings"`
29
35
Historyint`long:"history" description:"how many days back to download" default:"14"`
30
-
Quietbool`short:"q" long:"quiet" description:"don't log to stdout"`
31
-
VersionFlagbool`short:"v" long:"version" description:"display the version of arlo-dl and exit"`
32
36
MaxConcurrentint`short:"C" long:"max-concurrent" description:"maximum amount of recordings to download concurrently" default:"2"`
33
37
NameFormatstring`short:"f" long:"name-format" description:"go-template format for the file name" default:"{{.Camera.DeviceName}}/{{.Time.Year}}/{{.Time.Month}}/{{.Timestamp}}-{{.Recording.Name}}.mp4"`
34
38
35
39
CommandSetupCommandSetup`command:"setup" description:"generate a config for use with arlo-dl"`
36
40
}
37
41
38
42
func (f*Flags) Ensure() {
39
-
ifcli.Quiet {
40
-
logger.SetOutput(io.Discard)
41
-
}
42
-
43
-
ifcli.ConfigFile=="" {
43
+
ifcli.Flags.ConfigFile=="" {
44
44
usr, err:=user.Current()
45
45
iferr!=nil {
46
-
logger.Fatal(err)
46
+
logger.WithError(err).Fatal("failed to get current user")
0 commit comments