title: python, argparse get argument from input- raw_input
body: <p>I need help with this issue, I want to take an argument from user input using <code>argparse</code> save it to a variable and print out the result</p>
  
  <p>Example: 
  <strong>Message to send</strong>:</p>
  
  <blockquote>
    <p>-t Greeting -m hello guys how are you</p>
  </blockquote>
  
  <p><strong>prints out</strong>:</p>
  
  <blockquote>
    <p>greeting hello guys how are you</p>
  </blockquote>
  
  <p>this is my code:</p>
  
  <pre><code>import argparse, shlex
  parser = argparse.ArgumentParser() 
  parser.add_argument('-t', action='store', dest='title')
  parser.add_argument('-m', action='store', dest='msg')
  command = raw_input('message to send')
  
  args = parser.parse_args(shlex.split(command)) 
  title = args.title
  msg = args.msg
  print title, msg
  </code></pre>
  
  <p>when you enter, <code>-t hi -m hello</code>, it works fine but when you enter more then one word, it doesn't work.  Why?</p>