Skip to content

Commit a29cb3a

Browse files
committed
tests: ensure repeat bool option stacking
1 parent 8f5dbcc commit a29cb3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cli_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,17 @@ func TestParsing(t *testing.T) {
440440
},
441441
},
442442
},
443+
{
444+
Case: ttCase(),
445+
args: []string{"-bbb"},
446+
expected: Command{
447+
Inputs: []Input{
448+
{ID: "bb", From: ParsedFrom{Opt: "b"}, RawValue: "", Value: true},
449+
{ID: "bb", From: ParsedFrom{Opt: "b"}, RawValue: "", Value: true},
450+
{ID: "bb", From: ParsedFrom{Opt: "b"}, RawValue: "", Value: true},
451+
},
452+
},
453+
},
443454
{
444455
Case: ttCase(),
445456
args: []string{"-cb"},

0 commit comments

Comments
 (0)