--- commands/fetchjvn.go.orig 2017-06-26 10:39:59 UTC +++ commands/fetchjvn.go @@ -3,7 +3,6 @@ package commands import ( "context" "flag" - "os" "strconv" "time" @@ -45,7 +44,7 @@ func (*FetchJvnCmd) Usage() string { [-latest] [-last2y] [-years] 1998 1999 ... - [-dbpath=$PWD/cve.sqlite3 or connection string] + [-dbpath=/var/db/vuls/cve.sqlite3 or connection string] [-dbtype=mysql|postgres|sqlite3|redis] [-http-proxy=http://192.168.0.1:8080] [-debug] @@ -65,8 +64,7 @@ func (p *FetchJvnCmd) SetFlags(f *flag.F defaultLogDir := util.GetDefaultLogDir() f.StringVar(&p.logDir, "log-dir", defaultLogDir, "/path/to/log") - pwd := os.Getenv("PWD") - f.StringVar(&p.dbpath, "dbpath", pwd+"/cve.sqlite3", + f.StringVar(&p.dbpath, "dbpath", "/var/db/vuls/cve.sqlite3", "/path/to/sqlite3 or SQL connection string") f.StringVar(&p.dbtype, "dbtype", "sqlite3",