Skip to content

Commit

Permalink
chore: hide server-url flag from help output (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Dec 2, 2024
2 parents 121a1d1 + 33ec488 commit 00c35ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00c35ff

Please sign in to comment.