#!/usr/bin/python import sys cmd_options = sys.argv i = 0 for cmd in cmd_options: print "Argument ", i, "=", cmd i += 1