From 12ec5e4f932ea2174aa5c21acd573f6855f58ab9 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 26 Jan 2017 20:06:43 -0600 Subject: [PATCH] Remove varstatedir option --- dospin.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dospin.go b/dospin.go index 2d128e8..8a94d59 100644 --- a/dospin.go +++ b/dospin.go @@ -18,16 +18,14 @@ const ( ) type cmdOptions struct { - config string - cmd string - varStateDir string + config string + cmd string } func parseCmdOptions() cmdOptions { var o cmdOptions 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.varStateDir, "varstate", "/var/lib/dospin", "Path to the var state directory") + flag.StringVar(&o.config, "config", "dospin.json", "Path to the dospin config file") flag.Parse() return o }