From 33ec4884ac9bf506f93f942ffa57dd1def514910 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 2 Dec 2024 11:36:59 +0000 Subject: [PATCH] chore: hide server-url flag from help output --- cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/root.go b/cmd/root.go index 74eacc2..25018a8 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -60,6 +60,7 @@ func init() { // it is still kept here for backward compatibility rootCmd.PersistentFlags().String("server-url", "http://localhost:8080", "OpenFGA API URI e.g. https://api.fga.example:8080") //nolint:lll rootCmd.PersistentFlags().String("api-url", "http://localhost:8080", "OpenFGA API URI e.g. https://api.fga.example:8080") //nolint:lll + _ = rootCmd.PersistentFlags().MarkHidden("server-url") rootCmd.PersistentFlags().String("api-token", "", "API Token. Will be sent in as a Bearer in the Authorization header") rootCmd.PersistentFlags().String("api-token-issuer", "", "API Token Issuer. API responsible for issuing the API Token. Used in the Client Credentials flow") //nolint:lll