diff options
| author | Petter Rasmussen | 2016-01-18 23:03:44 +0100 |
|---|---|---|
| committer | Petter Rasmussen | 2016-01-18 23:03:44 +0100 |
| commit | 44aa7407f6bdbc5157104969ef275cd5e51a99af (patch) | |
| tree | f5fcf386febc68b8b3d8ef1e2362a6c5b5193252 /cli/context.go | |
| parent | 2be43fe18545ba6c35ee344b9880d48a18afe878 (diff) | |
| download | gdrive-44aa7407f6bdbc5157104969ef275cd5e51a99af.tar.bz2 | |
Add StringSliceFlag and StringSliceParser
Diffstat (limited to 'cli/context.go')
| -rw-r--r-- | cli/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) +} |
