aboutsummaryrefslogtreecommitdiffstats
path: root/cli/context.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-18 23:03:44 +0100
committerPetter Rasmussen2016-01-18 23:03:44 +0100
commit44aa7407f6bdbc5157104969ef275cd5e51a99af (patch)
treef5fcf386febc68b8b3d8ef1e2362a6c5b5193252 /cli/context.go
parent2be43fe18545ba6c35ee344b9880d48a18afe878 (diff)
downloadgdrive-44aa7407f6bdbc5157104969ef275cd5e51a99af.tar.bz2
Add StringSliceFlag and StringSliceParser
Diffstat (limited to 'cli/context.go')
-rw-r--r--cli/context.go4
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)
+}