--- commands/fetchnvd.go.orig 2017-06-26 10:39:59 UTC +++ commands/fetchnvd.go @@ -3,7 +3,6 @@ package commands import ( "context" "flag" - "os" "strconv" "time" @@ -43,7 +42,7 @@ func (*FetchNvdCmd) Usage() string { [-last2y] [-years] 2015 2016 ... [-dbtype=mysql|postgres|sqlite3|redis] - [-dbpath=$PWD/cve.sqlite3 or connection string] + [-dbpath=/var/db/vuls/cve.sqlite3 or connection string] [-http-proxy=http://192.168.0.1:8080] [-debug] [-debug-sql] @@ -65,8 +64,7 @@ func (p *FetchNvdCmd) 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",