Skip to content

Commit

Permalink
Fixing ChopChop when we are not specifying a url or a url-file. (#45
Browse files Browse the repository at this point in the history
)

Closes: #44
  • Loading branch information
PaulSec authored Oct 14, 2020
1 parent d8ec329 commit 6e02bb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func Scan(cmd *cobra.Command, args []string) {
var tmpURL string
var urlList []string

if url == "" && urlFile == "" {
log.Fatal("`url` or either `url-file` have been specified! Use `scan -help` for usage")
}

cfg, err := os.Open(configFile)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 6e02bb2

Please sign in to comment.