Skip to content

Commit 37be71d

Browse files
authored
fix: copy flag value when overriding flags to hide them (#596)
Signed-off-by: Grant Linville <[email protected]>
1 parent cb7fa1d commit 37be71d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cli/gptscript.go

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func New() *cobra.Command {
9595
newFlag := pflag.Flag{
9696
Name: f.Name,
9797
Usage: f.Usage,
98+
Value: f.Value,
9899
}
99100

100101
if f.Name != "credential-context" { // We want to keep credential-context

0 commit comments

Comments
 (0)