I am trying to determine if a script has been run with the -i flag. 11:38 >cat > dashi.py # dashi.py import sys print sys.argv # 11:38 >python dashi.py ['dashi.py'] 11:38 >python -i dashi.py ['dashi.py'] >>> So, 2 questions: What happens to -i ? How can I tell if -i was specified?