Skip to content

Commit

Permalink
Merge pull request #1129 from oleorhagen/reqflagr
Browse files Browse the repository at this point in the history
Reqflagr
  • Loading branch information
coilysiren committed May 4, 2020
2 parents 464c868 + 4839210 commit fdf2d38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions context_test.go
Expand Up @@ -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 {
Expand Down

0 comments on commit fdf2d38

Please sign in to comment.