kunt

golang IRC bot
git clone git://git.2f30.org/kunt.git
Log | Files | Refs | LICENSE

commit cb3f7d37ccb4faf91a0352093c2d701b8170961c
parent c4e6bf40dc7c46f8d217de9fdede1d6a63e1e26c
Author: sin <sin@2f30.org>
Date:   Tue Apr 30 17:54:37 +0100

change error code for invalid usage

Diffstat:
src/kunt/kunt.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -276,7 +276,7 @@ func main() { if flag.NArg() < 1 { fmt.Fprintf(os.Stderr, "usage: %s [-s] host:port\n", os.Args[0]) - os.Exit(1) + os.Exit(2) } hostport := strings.Split(flag.Arg(0), ":")