Instantiate the flag map on set

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
This commit is contained in:
Nolan Brubaker
2021-02-08 13:07:20 -05:00
parent e5d83197f6
commit e0ccc9942c

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) {