From 29dfbfbeb4c10e5cf037bce5c453624a592ec7e1 Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Fri, 22 Mar 2024 19:49:39 +0000 Subject: [PATCH] Return 1 on err --- hpot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpot.go b/hpot.go index 39c3952..4964764 100644 --- a/hpot.go +++ b/hpot.go @@ -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])