func (o *FilterOptions) Validate() error {
	pattern := o.FilterByOS
	if len(pattern) > 0 {
		re, err := regexp.Compile(pattern)
		if err != nil {
			return fmt.Errorf("--filter-by-os was not a valid regular expression: %v", err)
		}
		o.OSFilter = re
	}
	return nil
}
// Validate checks whether the flags are ready for use.
Validate checks whether the flags are ready for use.
// Validate checks whether the flags are ready for use .
func (o *FilterOptions) Validate() error {
	pattern := o.FilterByOS
	if len(pattern) > 0 {
		re, err := regexp.Compile(pattern)
		if err != nil {
			return fmt.Errorf("--filter-by-os was not a valid regular expression: %v", err)
		}
		o.OSFilter = re
	}
	return nil
}
func ( o * FilterOptions ) Validate ( ) error { pattern := o . FilterByOS if len ( pattern ) > 0 { re , err := regexp . Compile ( pattern ) if err != nil { return fmt . Errorf ( " " , err ) } o . OSFilter = re } return nil }
Validate checks whether the flags are ready for use.
Validate checks whether the flags are ready for use .