options sanity check update
This commit is contained in:
parent
26f96f3438
commit
0e185e156d
@ -65,6 +65,8 @@ func ParseOptions() (*Options,error) {
|
||||
|
||||
func (options *Options) SanityCheck() error {
|
||||
|
||||
if options.URL == "" {return errors.New("-u flag must present")}
|
||||
if options.PassFile == "" {return errors.New("-P flag must present")}
|
||||
if options.User != "admin" && options.UserFile != "" {return errors.New("-l and -L both flags present ")}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user