Skip to content

Commit

Permalink
Include available formats in --format help message (google#685)
Browse files Browse the repository at this point in the history
Works towards google#570.
  • Loading branch information
kemzeb authored Dec 3, 2023
1 parent 979ca0b commit 56a6590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/osv-scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func run(args []string, stdout, stderr io.Writer) int {
&cli.StringFlag{
Name: "format",
Aliases: []string{"f"},
Usage: "sets the output format",
Usage: fmt.Sprintf("sets the output format; value can be: %s", strings.Join(reporter.Format(), ", ")),
Value: "table",
Action: func(context *cli.Context, s string) error {
if slices.Contains(reporter.Format(), s) {
Expand Down

0 comments on commit 56a6590

Please sign in to comment.