Skip to content

Commit

Permalink
fix: copy flag value when overriding flags to hide them (#596)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Jul 1, 2024
1 parent cb7fa1d commit 37be71d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cli/gptscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37be71d

Please sign in to comment.