options sanity check update

This commit is contained in:
Casual 2024-04-12 07:33:54 +03:00
parent 26f96f3438
commit 0e185e156d

View File

@ -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