From 7fe462630d6554689daf706d77c4247bf70788d3 Mon Sep 17 00:00:00 2001 From: guabu <135956181+guabu@users.noreply.github.com> Date: Sat, 25 May 2024 09:16:20 +0200 Subject: [PATCH] fix: format as JSON when --json flag is passed --- internal/cli/tenants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/tenants.go b/internal/cli/tenants.go index 0222b3d31..e2a3d998a 100644 --- a/internal/cli/tenants.go +++ b/internal/cli/tenants.go @@ -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")