Instantiate the flag map on set

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
pull/3409/head
Nolan Brubaker 2021-02-08 13:07:20 -05:00
parent e5d83197f6
commit e0ccc9942c
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ type SetOptions struct {
}
func NewSetOptions() *SetOptions {
return &SetOptions{}
return &SetOptions{
Credential: flag.NewMap(),
}
}
func (o *SetOptions) BindFlags(flags *pflag.FlagSet) {