From e64e94ef42549cf3e69bc7a177fb19c726a6a767 Mon Sep 17 00:00:00 2001 From: guabu <135956181+guabu@users.noreply.github.com> Date: Tue, 4 Jun 2024 15:02:34 +0200 Subject: [PATCH] Format as JSON when --json flag is passed (#1002) fix: format as JSON when --json flag is passed Co-authored-by: KunalOfficial <35455566+developerkunal@users.noreply.github.com> --- 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")