Merge pull request #280 from gummiboll/fix-for-testcommandignoreflags

Added a flag for TestCommandIgnoreFlags
This commit is contained in:
Jesse Szwedko
2015-10-05 20:05:46 -07:00

View File

@@ -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)