JMS #4: Getting some cli tests going. Testing out flags

This commit is contained in:
Jeremy Saenz
2013-07-18 17:29:06 -07:00
parent 04496e4364
commit 3f76896c4f
7 changed files with 64 additions and 38 deletions

View File

@@ -36,7 +36,7 @@ func (f BoolFlag) Apply(set *flag.FlagSet) {
}
func flagSet(flags []Flag) *flag.FlagSet {
set := flag.NewFlagSet(Name, 0)
set := flag.NewFlagSet(Name, flag.ExitOnError)
for _, f := range flags {
f.Apply(set)
}