title: Passing command line argument with whitespace in Python
body: <p>I am trying to pass the command line argument with white space in it, but <code>sys.argv[1].strip()</code> gives me only first word of the argument</p>
  
  <pre><code>import sys, os
  docname = sys.argv[1].strip()
  
   e.g. $ python myscript.py argument with whitespace
  </code></pre>
  
  <p>If I try to debug - docname gives me output as <code>argument</code> instead of <code>argument with whitespace</code></p>
  
  <p>I tried to replace the white space with <code>.replace(" ","%20")</code> method but that didn't help    </p>