blob: 3e953218ac035134c9cafe334340aae8f44ef9ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package zabbix
import (
"flag"
)
var (
stateFileName string
workDir string
)
func processFlags() (err error) {
flag.StringVar(&stateFileName, "f", "", "Force the state file to use, defaults to "+bareosStateFile+" if it exists else "+baculaStateFile+".")
flag.StringVar(&workDir, "w", "", "Force the work directory to use, defaults to "+bareosWorkDir+" if it exists else "+baculaWorkDir+".")
flag.Parse()
err = checkWorkDir()
if err == nil {
err = checkStateFile()
}
return
}
|