diff --git a/context_test.go b/context_test.go index f302caf..61d6268 100644 --- a/context_test.go +++ b/context_test.go @@ -534,6 +534,14 @@ func TestCheckRequiredFlags(t *testing.T) { }, parseInput: []string{"-n", "asd", "-n", "qwe"}, }, + { + testCase: "required_flag_with_short_alias_not_printed_on_error", + expectedAnError: true, + expectedErrorContents: []string{"Required flag \"names\" not set"}, + flags: []Flag{ + &StringSliceFlag{Name: "names, n", Required: true}, + }, + }, } for _, test := range tdata {