title: How to convert commandline "key=value" args to dictionary?
body: <p>Currently I need to implement a python program that takes an arbitrary number of commandline arguments like</p>
  
  <pre><code>python myprog.py x1=12 y3=hello zz=60
  </code></pre>
  
  <p>and the arguments need to be converted into a dictionary like</p>
  
  <pre><code>{"x1": "12", "y3": "hello", "zz": "60"}
  </code></pre>
  
  <p>I tried the <em>argparse</em> module, but the keys in the arguments (x1, y3, zz in the example) cannot be known beforehand, while <em>argparse</em> seems to need me to add the argument keys individually, so I don't think it fits this specific situation?</p>
  
  <p>Any idea how to accomplish this kind of commandline args to dictionary conversion, have I missed something about <em>argparse</em> or do I need to use something else?</p>