Skip to content

Commit

Permalink
Fix error message when wrong number of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
barnardb committed Apr 20, 2019
1 parent de1bb10 commit 6cb3c21
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 @@ -59,7 +59,7 @@ func parseCommandLine() (options options) {
}

if flagSet.NArg() != 1 {
fatalError("error: expected 1 argument but got %d\n", flag.NArg())
fatalError("error: expected 1 argument but got", flag.NArg())
}

options.url, err = url.Parse(flagSet.Arg(0))
Expand Down

0 comments on commit 6cb3c21

Please sign in to comment.