Detect -u properly after last change (#174)

This commit is contained in:
Joona Hoikkala 2020-02-19 09:04:21 +02:00 committed by GitHub
parent 1e57e6d0a9
commit b58c30625e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ func prepareConfig(parseOpts *cliOptions, conf *ffuf.Config) error {
var err error
var err2 error
if len(conf.Url) == 0 && parseOpts.request == "" {
if len(parseOpts.URL) == 0 && parseOpts.request == "" {
errs.Add(fmt.Errorf("-u flag or -request flag is required"))
}