Skip to content

Commit 4ab918d

Browse files
committed
fix: option hiding in cred subcommands
The credential subcommands throw a nil ptr exception due to a nil credential override flag value. Prevent this by including the value when hiding flags from credential subcommands. Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
1 parent 37be71d commit 4ab918d

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
@@ -109,6 +109,7 @@ func New() *cobra.Command {
109109
newFlag := pflag.Flag{
110110
Name: f.Name,
111111
Usage: f.Usage,
112+
Value: f.Value,
112113
}
113114

114115
if f.Name != "credential-context" {

0 commit comments

Comments
 (0)