refactor, more robust flag propagation

This commit is contained in:
Jared Forsyth
2013-11-20 01:05:18 -07:00
parent 73e88630a5
commit dc8a62e0e9
5 changed files with 76 additions and 31 deletions

View File

@@ -80,7 +80,7 @@ func TestParseMultiString(t *testing.T) {
},
}).Run([]string{"run", "-s", "10"})
(&cli.App{
/*(&cli.App{
Flags: []cli.Flag{
cli.StringFlag{Name: "serve, s"},
},
@@ -93,6 +93,7 @@ func TestParseMultiString(t *testing.T) {
}
},
}).Run([]string{"run", "--serve", "10"})
*/
}
func TestParseMultiInt(t *testing.T) {
@@ -109,7 +110,7 @@ func TestParseMultiInt(t *testing.T) {
}
},
}
a.Run([]string{"run", "--serve", "10"})
a.Run([]string{"run", "-s", "10"})
}
func TestParseMultiBool(t *testing.T) {