// MakeFlagUploadable registers the given flag name(s) as allowing file uploads.
// Once a flag is registered, a file input will appear next to it in the
// user interface, allowing the user to upload a file for the flag argument.
MakeFlagUploadable registers the given flag name(s) as allowing file uploads.
Once a flag is registered, a file input will appear next to it in the
user interface, allowing the user to upload a file for the flag argument.
// MakeFlagUploadable registers the given flag name ( s ) as allowing file uploads . // Once a flag is registered a file input will appear next to it in the // user interface allowing the user to upload a file for the flag argument .
func (s *Server) MakeFlagUploadable(names ...string) {
	if s.uploadableFlags == nil {
		s.uploadableFlags = make(map[string]struct{})
	}
	for _, name := range names {
		s.uploadableFlags[name] = struct{}{}
	}
}
func ( s * Server ) MakeFlagUploadable ( names ... string ) { if s . uploadableFlags == nil { s . uploadableFlags = make ( map [ string ] struct { } ) } for _ , name := range names { s . uploadableFlags [ name ] = struct { } { } } }
MakeFlagUploadable registers the given flag name(s) as allowing file uploads.
MakeFlagUploadable registers the given flag name ( s ) as allowing file uploads .