search context hierachy for global flags

This commit is contained in:
Fabian Ruff
2015-05-18 17:39:48 +02:00
committed by Fabian Ruff
parent 942282e931
commit 65d50017d4
6 changed files with 75 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ func TestCommandDoNotIgnoreFlags(t *testing.T) {
test := []string{"blah", "blah", "-break"}
set.Parse(test)
c := cli.NewContext(app, set, set)
c := cli.NewContext(app, set, nil)
command := cli.Command{
Name: "test-cmd",
@@ -33,7 +33,7 @@ func TestCommandIgnoreFlags(t *testing.T) {
test := []string{"blah", "blah"}
set.Parse(test)
c := cli.NewContext(app, set, set)
c := cli.NewContext(app, set, nil)
command := cli.Command{
Name: "test-cmd",