|
|
@ -116,6 +116,13 @@ func (f *StringSliceFlag) GetValue() string {
|
|
|
|
|
|
|
|
|
|
|
|
// Apply populates the flag given the flag set and environment
|
|
|
|
// Apply populates the flag given the flag set and environment
|
|
|
|
func (f *StringSliceFlag) Apply(set *flag.FlagSet) error {
|
|
|
|
func (f *StringSliceFlag) Apply(set *flag.FlagSet) error {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if f.Destination != nil && f.Value != nil {
|
|
|
|
|
|
|
|
f.Destination.slice = make([]string, len(f.Value.slice))
|
|
|
|
|
|
|
|
copy(f.Destination.slice, f.Value.slice)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if val, ok := flagFromEnvOrFile(f.EnvVars, f.FilePath); ok {
|
|
|
|
if val, ok := flagFromEnvOrFile(f.EnvVars, f.FilePath); ok {
|
|
|
|
f.Value = &StringSlice{}
|
|
|
|
f.Value = &StringSlice{}
|
|
|
|
destination := f.Value
|
|
|
|
destination := f.Value
|
|
|
|