scan.go
func (s Scan) AddFlags(flags ...string) Scan {
	for _, flag := range flags {
		if strings.Contains(flag, " ") {
			s.configErr = errors.New("Flags must not have spaces in them")
			return s
		}
		for _, df := range DisallowedFlags {
			if flag == df {
				s.configErr = &DisallowedFlagError{df}
				return s
			}
		}
	}

	s.configOpts = append(s.configOpts, flags...)
	return s
}
func (s Scan) AddFlags(flags ...string) Scan {
	for _, flag := range flags {
		if strings.Contains(flag, " ") {
			s.configErr = errors.New("Flags must not have spaces in them")
			return s
		}
		for _, df := range DisallowedFlags {
			if flag == df {
				s.configErr = &DisallowedFlagError{df}
				return s
			}
		}
	}

	s.configOpts = append(s.configOpts, flags...)
	return s
}
func ( s Scan ) AddFlags ( flags ... string ) Scan { for _ , flag := range flags { if strings . Contains ( flag , " " ) { s . configErr = errors . New ( " " ) return s } for _ , df := range DisallowedFlags { if flag == df { s . configErr = & DisallowedFlagError { df } return s } } } s . configOpts = append ( s . configOpts , flags ... ) return s }
// AddFlags adds a list of flags to be used by nmap. Seperate flags by new
// arguments. The order of the flag is kept, so when using flags that require
// file names, seperate it by using multiple arguments.
//
// Use the DisallowedFlags variable to guide you on which flags are not allowed
// to be used.
AddFlags adds a list of flags to be used by nmap . Seperate flags by new arguments . The order of the flag is kept so when using flags that require file names seperate it by using multiple arguments . Use the DisallowedFlags variable to guide you on which flags are not allowed to be used .