Skip to content

Commit ebe35ca

Browse files
fix: also cover scan command's --report-format flag
Co-Authored-By: Vlad Matsiiako <vm265@cornell.edu>
1 parent dd4dd7f commit ebe35ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func RootCmdStdoutWriter() io.Writer {
6868
func isStructuredOutputRequested(cmd *cobra.Command) bool {
6969
structuredFormats := map[string]bool{"json": true, "csv": true, "yaml": true}
7070

71-
for _, flagName := range []string{"format", "output"} {
71+
for _, flagName := range []string{"format", "output", "report-format"} {
7272
if f := cmd.Flags().Lookup(flagName); f != nil && f.Changed {
7373
if structuredFormats[strings.ToLower(f.Value.String())] {
7474
return true

0 commit comments

Comments
 (0)