Skip to content

Commit

Permalink
chore: hide server-url flag from help output
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Dec 2, 2024
1 parent 121a1d1 commit dfe7f5b
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")

Check failure on line 63 in cmd/root.go

View workflow job for this annotation

GitHub Actions / Lints

Error return value of `(*github.com/spf13/pflag.FlagSet).MarkHidden` is not checked (errcheck)

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 dfe7f5b

Please sign in to comment.