summaryrefslogtreecommitdiffstats
path: root/bin/ksl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksl')
-rwxr-xr-xbin/ksl10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ksl b/bin/ksl
index 3354288a..0a9d7736 100755
--- a/bin/ksl
+++ b/bin/ksl
@@ -33,11 +33,11 @@ class BaseApp(cli.log.LoggingApp):
for x in args:
key, value = x.split('=', 1)
# make lists if there are multiple values
- if key in kv:
- if type(kv) is type(tuple()):
- kv[key] = kv[key] + (value,)
- else:
- kv[key] = (kv[key], value)
+ if key.endswith('[]'):
+ key = key[:-2]
+ existing = kv.get(key, [])
+ existing.append(value)
+ kv[key] = existing
else:
kv[key] = value
return kv