Skip to content

Commit

Permalink
Format as JSON when --json flag is passed (#1002)
Browse files Browse the repository at this point in the history
fix: format as JSON when --json flag is passed

Co-authored-by: KunalOfficial <[email protected]>
  • Loading branch information
guabu and developerkunal authored Jun 4, 2024
1 parent a5ca6bf commit e64e94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func listTenantCmd(cli *cli) *cobra.Command {
},
}

cmd.Flags().BoolVar(&cli.csv, "json", false, "Output in json format.")
cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.")
cmd.Flags().BoolVar(&cli.csv, "csv", false, "Output in csv format.")
cmd.MarkFlagsMutuallyExclusive("json", "csv")

Expand Down

0 comments on commit e64e94e

Please sign in to comment.