Remove varstatedir option
This commit is contained in:
parent
31044fe0c3
commit
12ec5e4f93
@ -18,16 +18,14 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type cmdOptions struct {
|
type cmdOptions struct {
|
||||||
config string
|
config string
|
||||||
cmd string
|
cmd string
|
||||||
varStateDir string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseCmdOptions() cmdOptions {
|
func parseCmdOptions() cmdOptions {
|
||||||
var o cmdOptions
|
var o cmdOptions
|
||||||
flag.StringVar(&o.cmd, "cmd", CMD_SERVE, "Mode to run command in ("+CMD_SERVE+","+CMD_SPINDOWNALL+")")
|
flag.StringVar(&o.cmd, "cmd", CMD_SERVE, "Mode to run command in ("+CMD_SERVE+","+CMD_SPINDOWNALL+")")
|
||||||
flag.StringVar(&o.config, "config", "/etc/dospin.json", "Path to the dospin config file")
|
flag.StringVar(&o.config, "config", "dospin.json", "Path to the dospin config file")
|
||||||
flag.StringVar(&o.varStateDir, "varstate", "/var/lib/dospin", "Path to the var state directory")
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user