From 37be71d160270f765f92e777b95684ba3660868e Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Mon, 1 Jul 2024 16:30:06 -0400 Subject: [PATCH] fix: copy flag value when overriding flags to hide them (#596) Signed-off-by: Grant Linville --- pkg/cli/gptscript.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cli/gptscript.go b/pkg/cli/gptscript.go index 735fd8d3..19a6b2f2 100644 --- a/pkg/cli/gptscript.go +++ b/pkg/cli/gptscript.go @@ -95,6 +95,7 @@ func New() *cobra.Command { newFlag := pflag.Flag{ Name: f.Name, Usage: f.Usage, + Value: f.Value, } if f.Name != "credential-context" { // We want to keep credential-context