Skip to content

Commit

Permalink
fix(cmd) Correctly mark --admin-api-key flag as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
clemfromspace committed Mar 4, 2024
1 parent 3d29435 commit d2e4724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewRootCmd(f *cmdutil.Factory) *cobra.Command {
cmd.PersistentFlags().StringVarP(&f.Config.Profile().ApplicationID, "application-id", "", "", "The application ID")
cmd.PersistentFlags().StringVarP(&f.Config.Profile().APIKey, "api-key", "", "", "The API key")
cmd.PersistentFlags().StringVarP(&f.Config.Profile().AdminAPIKey, "admin-api-key", "", "", "The admin API key")
_ = cmd.Flags().MarkDeprecated("admin-api-key", "use --api-key instead")
_ = cmd.PersistentFlags().MarkDeprecated("admin-api-key", "use --api-key instead")
cmd.PersistentFlags().StringSliceVar(&f.Config.Profile().SearchHosts, "search-hosts", nil, "The list of search hosts as CSV")

cmd.Flags().BoolP("version", "v", false, "Get the version of the Algolia CLI")
Expand Down

0 comments on commit d2e4724

Please sign in to comment.