title: python: IndexError: list index out of range (file = sys.argv[1])
body: <pre><code>if __name__ == "__main__":
      file = sys.argv[1]
      f = FST("q0")
      #f.addState("1", True)
      #f.addState("2", True)
      #f.addState("3", True)
  </code></pre>
  
  <p>in line <code>file = sys.argv[1]</code> getting this error. can anyone please help me out.</p>