How to pass command line argument to python using eclipse
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4355721/passing-command-line-argument-to-python-script-within-eclipsepydev">Passing command Line argument to Python script within Eclipse(Pydev)</a>  </p>
</blockquote>



<p>I have a python script that contains the following line:</p>

<pre><code>reportIP(sys.argv[1])
</code></pre>

<p>when I run the code, I get the following error:</p>

<pre><code>IndexError: list index out of range
</code></pre>

<p>I understand that there is an argument that need to be passed. How can I do this if I am running my code from eclipse after I added PyDev? Please, try to be detailed as much as you can.</p>
