Skip to content

Commit d2e4724

Browse files
committed
fix(cmd) Correctly mark --admin-api-key flag as deprecated
1 parent 3d29435 commit d2e4724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func NewRootCmd(f *cmdutil.Factory) *cobra.Command {
8484
cmd.PersistentFlags().StringVarP(&f.Config.Profile().ApplicationID, "application-id", "", "", "The application ID")
8585
cmd.PersistentFlags().StringVarP(&f.Config.Profile().APIKey, "api-key", "", "", "The API key")
8686
cmd.PersistentFlags().StringVarP(&f.Config.Profile().AdminAPIKey, "admin-api-key", "", "", "The admin API key")
87-
_ = cmd.Flags().MarkDeprecated("admin-api-key", "use --api-key instead")
87+
_ = cmd.PersistentFlags().MarkDeprecated("admin-api-key", "use --api-key instead")
8888
cmd.PersistentFlags().StringSliceVar(&f.Config.Profile().SearchHosts, "search-hosts", nil, "The list of search hosts as CSV")
8989

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

0 commit comments

Comments
 (0)