title: How to convert command line string to an array?
body: <p>I have a command line in a string variable (this is not my program's parameters, I got it somewhere else):</p>
  
  <pre><code>cmd_line = "app.exe --a value -b \"this is a quoted string\"";
  </code></pre>
  
  <p>How i can convert this command line to an array?</p>
  
  <pre><code>res = ["app.exe", "--a", "value", "-b", "this is a quoted string"]
  </code></pre>
  
  <p>There is a winapi function <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx" rel="nofollow">CommandLineToArgvW</a>. There is an equivalent in Python?</p>