title: python command line arguments in main, skip script name
body: <p>This is my script</p>
  
  <pre><code>def main(argv):
      if len(sys.argv)&gt;1:
          for x in sys.argv:
              build(x)
  
  if __name__ == "__main__":
      main(sys.argv)
  </code></pre>
  
  <p>so from the command line I write <code>python myscript.py commandlineargument</code></p>
  
  <p>I want it to skip <code>myscript.py</code> and simply run <code>commandlineargument</code> through <code>commandlineargument(n)</code></p>
  
  <p>so I understand that my for loop doesn't account for this, but how do I make it do that?</p>