rax-maas / rackspace-monitoring-cli

Command line utility for Rackspace Cloud Monitoring (MaaS).
49 stars 18 forks source link

Supporting nested list arguments in input strings #69

Closed bravelittlescientist closed 10 years ago

bravelittlescientist commented 10 years ago

input: "url=http://foobar.com/justin,args=foo,args=justin,otherKey=AnotherKey,finalKey=42" Expected output in raxmon-cli/utils.str_to_dict(input) { "url": "http://foobar.com/justin", "args": ["foo", "justin"], "otherKey": "AnotherKey", "finalKey": "42" }

Currently, args is parsed as "justin", overriding "foo".

jirwin commented 10 years ago

I like it!

jirwin commented 10 years ago

LGTM +1