diff --git a/cmd/kubectl_token.go b/cmd/kubectl_token.go index 8f905dfe..1b79d329 100644 --- a/cmd/kubectl_token.go +++ b/cmd/kubectl_token.go @@ -526,7 +526,7 @@ func generateKey() (string, error) { } func getCacheDir(ctx *cli.Context) (string, error) { - p := ctx.String("cache-path") + p := ctx.String("cache-dir") if p == "" { return os.Getwd() }