Parse the key-value pairs like a shell script