Skip to content

Commit

Permalink
Correction of some typos, print syntax if no args provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
hojabri committed Apr 18, 2020
1 parent 4ac5c7b commit a46d5b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var (
caFile = flag.String("CA", "someCertCAFile", "A PEM eoncoded CA's certificate file.")
insecure = flag.Bool("i", false, "TLS checks are disabled")
respContains = flag.String("s", "", "if specified, it counts how often the searched string s is contained in the responses")
readAll = flag.Bool("r", false, "in the case of having stream or file in the response,\n it reads all response body to calculate the response size")
)

func init() {
Expand Down Expand Up @@ -77,6 +78,10 @@ func setRequestBody() {
}

func main() {
if len(os.Args) == 1 { //If no argument specified
flag.Usage() //Print usage
os.Exit(1)
}
setRequestBody()
switch *dist {
case "m":
Expand Down

0 comments on commit a46d5b9

Please sign in to comment.