title: How to pass filepath as command line arugement in argparse python
body: <p>I need to pass like </p>
  
  <pre><code> Python test.py -H host -U usr -P pass -L c:\newfolder\sample.sh -R /shell/sample.sh
  </code></pre>
  
  <p>I got error message <code>too many values to unpack</code></p>
  
  <p>Please help me to achieve this.</p>
  
  <pre><code>def check_argv(args=None)
      parser = argparse.argumentParser()
      parser.add_arugument('-H' , 'host')
      #Same for all argument
  #---------------------------------
  
  
  Host, pass, user , local , remote = check_arg(sys.argv[1:])
  </code></pre>