title: python setup tools console_scripts with arguments
body: <p>I want to implement my pypy.py script on commandline, I need to work with setup tools but the console_script does not work properly as my pypy.py needs two arguments, please guide me how can I modify it properly to work on commendline.</p>
  <p>python.py</p>
  <pre><code>def main(agru1, argu2):
  
      &quot;do something&quot;
  
   if __name__ == &quot;__main__&quot;:
          main()
  </code></pre>
  <p>when I include it in my setup.py file, as console_script as follow</p>
  <pre><code>setup( 
       entry_points={
          'console_scripts': ['pypy = pypy.pypy:main'],
      }
  
  )
  </code></pre>
  <p>And I get the following error when I run it on commandline:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;/usr/local/bin/python&quot;, line 9, in &lt;module&gt;
  load_entry_point('Pypy==0.1', 'console_scripts', 'pypy')()
  TypeError: main() takes at least 2 arguments (0 given)
  </code></pre>