Extend Tag for non-core decoders (Fixes #14)

This commit is contained in:
Gerald Kaszuba
2018-05-23 10:22:57 +10:00
committed by Alec Thomas
parent 6c80dd3f31
commit 886edb6f5a
3 changed files with 51 additions and 40 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
func TestParseHandlingBadBuild(t *testing.T) {
var cli struct {
Enabled bool `kong:"unknown"`
Enabled bool `kong:"fail='"`
}
args := os.Args
@@ -21,7 +21,7 @@ func TestParseHandlingBadBuild(t *testing.T) {
defer func() {
if r := recover(); r != nil {
require.Equal(t, Error{msg: "unknown is an unknown kong key"}, r)
require.Equal(t, Error{msg: "fail=' is not quoted properly"}, r)
}
}()