Python String Argument Parsing
<p>I am working with the cmd class in python and it passes me all of my arguments as one big string.  What is the best way to tokenize this arg string into an array of args[].</p>

<p>Example:</p>

<pre><code>args = 'arg arg1 "arg2 with quotes" arg4 arg5=1'
result = split_args(args)
</code></pre>

<p>And it would look like:</p>

<pre><code> result = [  
      'arg',
      'arg1',
      'arg2 with quotes',
      'arg4',
      'arg5=1'
]
</code></pre>
