From 2df2c781e91d60e95d80a5eb8c4b72c3fb0745a2 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 1 Dec 2022 02:47:41 -0800 Subject: [PATCH] lib/xmain: Print usage info in separate log --- lib/xmain/xmain.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/xmain/xmain.go b/lib/xmain/xmain.go index 80de10137..b0a1aeb3a 100644 --- a/lib/xmain/xmain.go +++ b/lib/xmain/xmain.go @@ -66,10 +66,10 @@ func Main(run RunFunc) { } if msg != "" { - if usage { - msg = fmt.Sprintf("%s\n%s", msg, "Run with --help to see usage.") - } ms.Log.Error.Print(msg) + if usage { + ms.Log.Error.Print("Run with --help to see usage.") + } } os.Exit(code) }