From 1a9275f338e607971cca74c95ac1bc01e4904f7a Mon Sep 17 00:00:00 2001 From: Bhargav Ravuri Date: Sat, 19 Nov 2022 21:24:37 +0530 Subject: [PATCH] Remove Redundant "Unknown-Flag" Error Signed-off-by: Bhargav Ravuri --- flag.go | 1 - 1 file changed, 1 deletion(-) diff --git a/flag.go b/flag.go index 7c058de3..2723762e 100644 --- a/flag.go +++ b/flag.go @@ -916,7 +916,6 @@ func VarP(value Value, name, shorthand, usage string) { func (f *FlagSet) failf(format string, a ...interface{}) error { err := fmt.Errorf(format, a...) if f.errorHandling != ContinueOnError { - fmt.Fprintln(f.Output(), err) f.usage() } return err