Merge pull request #280 from gummiboll/fix-for-testcommandignoreflags
Added a flag for TestCommandIgnoreFlags
This commit is contained in:
commit
f35cf683a8
@ -28,7 +28,7 @@ func TestCommandDoNotIgnoreFlags(t *testing.T) {
|
|||||||
func TestCommandIgnoreFlags(t *testing.T) {
|
func TestCommandIgnoreFlags(t *testing.T) {
|
||||||
app := NewApp()
|
app := NewApp()
|
||||||
set := flag.NewFlagSet("test", 0)
|
set := flag.NewFlagSet("test", 0)
|
||||||
test := []string{"blah", "blah"}
|
test := []string{"blah", "blah", "-break"}
|
||||||
set.Parse(test)
|
set.Parse(test)
|
||||||
|
|
||||||
c := NewContext(app, set, nil)
|
c := NewContext(app, set, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user