title: can't pass arguements using argparse and python 3.4.2 on Windows 7
body: <p>I've upgraded to Python 3.4.2 and argparse (from optparse) but neither appears to recognise command line options. As a simple test I run this;</p>
  
  <pre><code>#test_argparse.py
  
  def main():
      import argparse
  
      parser = argparse.ArgumentParser(description='Execute database query.')
  
      parser.add_argument("-q", "--query", dest="query",
                    help="Name of the query file to be run")
  
      args = parser.parse_args()
  
      print(args)
  
  if __name__ == '__main__':
       main()
  </code></pre>
  
  <p>From the command line, when I run </p>
  
  <pre><code>test_argparse.py -q get_msre_for_book
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Namespace(query=None)
  </code></pre>
  
  <p>But when I run from within the IDE:</p>
  
  <pre><code>*** Python 3.4.2rc1 (v3.4.2rc1:8711a0951384, Sep 21 2014, 21:16:45) [MSC v.1600 32 bit (Intel)] on win32. ***
  
  Command Line : -q get_msre_for_book
  Namespace(query='get_msre_for_book')
  </code></pre>
  
  <p>I'm trying to launch the script via</p>
  
  <pre><code>os.system('python.exe', '&lt;path to script&gt;test_argparse.py -q get_msre_for_book')
  </code></pre>
  
  <p>But that fails as no query is presented as shown above. I've worked round this by launching using</p>
  
  <pre><code>subprocess.call
  </code></pre>
  
  <p>but I'd rather not have to. Again, any suggestions or ideas gratefully received.</p>