adding argument with argparse
<p>I have this little problem with argparse :</p>

<pre><code>#!/usr/bin/python2.6
#test.py
import argparse

parser = argparse.ArgumentParser(description="test")
parser.add_argument('c', nargs='*')
parser.add_argument('cj', nargs='*')

results = vars(parser.parse_args())
print results
</code></pre>

<p>Now in the command line if I type in : "test.py c 1"</p>

<p>it returns this</p>

<blockquote>
  <p>{'cj': [], 'c': ['c', '1']}</p>
</blockquote>

<p>but if I type in "  "test.py cj 1"</p>

<p>it returns this :</p>

<blockquote>
  <p>{'cj': [], 'c': ['cj', '1']}</p>
</blockquote>

<p>I am expecting the second example to return value in the 'cj' key, but it keeps on appears in the 'c' key.</p>

<p>what am I doing wrong ?</p>

<p>cheers,</p>
