Tweaks to Int64Flag PR

This commit is contained in:
Dan Buch
2016-06-16 10:14:28 -04:00
parent 5c7cca7f16
commit 537f5beb66
3 changed files with 4 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ func TestNewContext(t *testing.T) {
set.Float64("myflag64", float64(17), "doc")
globalSet := flag.NewFlagSet("test", 0)
globalSet.Int("myflag", 42, "doc")
globalSet.Int("myflagInt64", 42, "doc")
globalSet.Int64("myflagInt64", int64(42), "doc")
globalSet.Float64("myflag64", float64(47), "doc")
globalCtx := NewContext(nil, globalSet, nil)
command := Command{Name: "mycommand"}