From 44aa7407f6bdbc5157104969ef275cd5e51a99af Mon Sep 17 00:00:00 2001 From: Petter Rasmussen Date: Mon, 18 Jan 2016 23:03:44 +0100 Subject: Add StringSliceFlag and StringSliceParser --- cli/context.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/context.go') diff --git a/cli/context.go b/cli/context.go index ab40c87..c109281 100644 --- a/cli/context.go +++ b/cli/context.go @@ -31,3 +31,7 @@ func (self Arguments) Int64(key string) int64 { func (self Arguments) Bool(key string) bool { return self[key].(bool) } + +func (self Arguments) StringSlice(key string) []string { + return self[key].([]string) +} -- cgit v1.2.3