title: Parse JSON like dictionary from command line
body: <p>I am trying to parse a JSON like dictionary from command line 
  I want to pass something like</p>
  
  <p>--myflags {'foo':'bar', 'foo2':bar2'}</p>
  
  <p>When I use </p>
  
  <pre><code>var argv = require('minimist')(process.argv.slice(2));
  console.dir(argv)
  </code></pre>
  
  <p>It reads the output as </p>
  
  <pre><code>3: --myflags
  4: {'
  5: foo':
  6: 'bar',
  7: 'foo2':
  8: 'bar2'
  9: }
  </code></pre>
  
  <p>var argv = require('minimist')(process.argv.slice(2));
  console.dir(argv)</p>
  
  <p>It reads the values as </p>
  
  <pre><code> '{\'' }
  </code></pre>
  
  <p>How do i read the complete dicT? </p>