Skip to content

Commit

Permalink
Return 1 on err
Browse files Browse the repository at this point in the history
  • Loading branch information
qba73 committed Mar 22, 2024
1 parent b864087 commit 29dfbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpot.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func Main() int {
flag.Parse()
if len(flag.Args()) == 0 {
fmt.Println(usage)
return 0
return 1
}

ports, err := parsePorts(flag.Args()[0])
Expand Down

0 comments on commit 29dfbfb

Please # to comment.