Skip to content

Commit fb8be7b

Browse files
knqyf263rolandshoemaker
authored andcommitted
cmd/gendb: fix flag defaults
Looks like the usage specification is wrong. Before: ``` $ gendb -h Usage of gendb: -out string (default "Directory to write JSON database to") -reports string (default "Directory containing toml reports") ``` After: ``` $ gendb -h Usage of /var/folders/j7/pvz71jxn637dqd96gm80nhwm0000gn/T/go-build330871962/b001/exe/main: -out string Directory to write JSON database to (default "out") -reports string Directory containing toml reports (default "reports") ``` Change-Id: I47fd858bdcb19eb22e5aefc7d891497c58e567ba GitHub-Last-Rev: 07a42f8 GitHub-Pull-Request: #3 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/314550 Reviewed-by: Roland Shoemaker <roland@golang.org> Trust: Michael Knyszek <mknyszek@google.com>
1 parent c856ba8 commit fb8be7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/gendb/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func matchesCurrent(path string, new []osv.Entry) bool {
4141
}
4242

4343
func main() {
44-
tomlDir := flag.String("reports", "Directory containing toml reports", "")
45-
jsonDir := flag.String("out", "Directory to write JSON database to", "")
44+
tomlDir := flag.String("reports", "reports", "Directory containing toml reports")
45+
jsonDir := flag.String("out", "out", "Directory to write JSON database to")
4646
flag.Parse()
4747

4848
tomlFiles, err := ioutil.ReadDir(*tomlDir)

0 commit comments

Comments
 (0)