Skip to content

Commit

Permalink
fix: pass url with flag
Browse files Browse the repository at this point in the history
  • Loading branch information
riza committed Oct 29, 2023
1 parent c622837 commit 1117485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func main() {

var urls []string
if flag.NArg() > 0 {
urls[0] = flag.Arg(0)
urls = []string{flag.Arg(0)}
} else {
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
Expand Down

0 comments on commit 1117485

Please sign in to comment.