From 73bbdee741aa655534503a53713a7545f2afa229 Mon Sep 17 00:00:00 2001 From: Andrey Kolkov Date: Tue, 23 Dec 2025 18:28:29 +0400 Subject: [PATCH] fix(kubeconfig): remove unused arg [local-path] from help text Signed-off-by: Andrey Kolkov --- pkg/commands/kubeconfig_handler.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/commands/kubeconfig_handler.go b/pkg/commands/kubeconfig_handler.go index 847dee1..7dbfbe4 100644 --- a/pkg/commands/kubeconfig_handler.go +++ b/pkg/commands/kubeconfig_handler.go @@ -29,6 +29,12 @@ func wrapKubeconfigCommand(wrappedCmd *cobra.Command, originalRunE func(*cobra.C // Add --login flag to update system kubeconfig file instead of local one wrappedCmd.Flags().BoolP("login", "l", false, "update system kubeconfig file, not local one") + // Fix help text for unused arg [local-path] from talosctl kubeconfig command + wrappedCmd.Use = "kubeconfig" + wrappedCmd.Long = `Download the admin kubeconfig from the node. +If merge flag is true, config will be merged with ~/.kube/config. +Otherwise, kubeconfig will be written to PWD.` + wrappedCmd.RunE = func(cmd *cobra.Command, args []string) error { // Ensure project root is detected if !Config.RootDirExplicit {