Skip to content

Commit 7827b5d

Browse files
author
Maceo Thompson
committed
internal/scan: update show help message
The help message for the -show flag was incorrect. It now outputs the correct supported values for -show. Change-Id: Ib53562f5a663e56fe9972cba75b41b8bda87e1f3 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/549315 Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent c27f855 commit 7827b5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/govulncheck/testdata/testfiles/usage/usage.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Usage:
2020
set the scanning level desired, one of module, package or symbol (default "symbol")
2121
-show list
2222
enable display of additional information specified by the comma separated list
23-
The only supported value is 'traces'
23+
The supported values are 'traces','color', and 'version'
2424
-tags list
2525
comma-separated list of build tags
2626
-test

internal/scan/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func parseFlags(cfg *config, stderr io.Writer, args []string) error {
4747
flags.StringVar(&cfg.db, "db", "https://vuln.go.dev", "vulnerability database `url`")
4848
flags.StringVar(&cfg.mode, "mode", modeSource, "supports source or binary")
4949
flags.Var(&tagsFlag, "tags", "comma-separated `list` of build tags")
50-
flags.Var(&showFlag, "show", "enable display of additional information specified by the comma separated `list`\nThe only supported value is 'traces'")
50+
flags.Var(&showFlag, "show", "enable display of additional information specified by the comma separated `list`\nThe supported values are 'traces','color', and 'version'")
5151
flags.BoolVar(&version, "version", false, "print the version information")
5252
scanLevel := flags.String("scan", "symbol", "set the scanning level desired, one of module, package or symbol")
5353
flags.Usage = func() {

0 commit comments

Comments
 (0)