From 97afa5e7ca8a08a383cb259e06636b5e2cc7897f Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Fri, 20 Oct 2017 13:06:17 +0200 Subject: Prevent printing when using ContinueOnError (#144) --- flag_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flag_test.go') diff --git a/flag_test.go b/flag_test.go index f2d6f28..d587752 100644 --- a/flag_test.go +++ b/flag_test.go @@ -106,8 +106,8 @@ func TestUsage(t *testing.T) { if GetCommandLine().Parse([]string{"--x"}) == nil { t.Error("parse did not fail for unknown flag") } - if !called { - t.Error("did not call Usage for unknown flag") + if called { + t.Error("did call Usage while using ContinueOnError") } } -- cgit v1.2.3