github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/command/flag/optional_string.go (about) 1 package flag 2 3 import "code.cloudfoundry.org/cli/types" 4 5 type OptionalString types.OptionalString 6 7 func (o *OptionalString) UnmarshalFlag(val string) error { 8 o.IsSet = true 9 o.Value = val 10 11 return nil 12 }