From 3e2ee939c44bcec0976ef9c4952503e7b44b3334 Mon Sep 17 00:00:00 2001 From: surdeus Date: Mon, 14 Nov 2022 23:53:48 +0500 Subject: [PATCH] in: fixed wrong 0 arguments handling. --- src/tool/in/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tool/in/main.go b/src/tool/in/main.go index c1a3fdd..3f2e5e2 100644 --- a/src/tool/in/main.go +++ b/src/tool/in/main.go @@ -28,7 +28,10 @@ func Run(args []string) { args = flagSet.Args() if len(args) == 0 { - flagSet.Usage() + //flagSet.Usage() + if !not { + os.Exit(1) + } } mp := make(map[string] int)