diff options
| author | Steven Roose <[email protected]> | 2017-10-20 13:06:17 +0200 |
|---|---|---|
| committer | Albert Nigmatzianov <[email protected]> | 2017-10-20 13:06:17 +0200 |
| commit | 97afa5e7ca8a08a383cb259e06636b5e2cc7897f (patch) | |
| tree | 6b17fe97f4bd89a8ddeb415c6012893d6656465e /flag_test.go | |
| parent | 1f33b80956cde38911d1f23d764deb8d77a649ce (diff) | |
Prevent printing when using ContinueOnError (#144)
Diffstat (limited to 'flag_test.go')
| -rw-r--r-- | flag_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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") } } |
