python -- figured out how to parse command line args

David Stockwell winexpert at hotmail.com
Wed Jun 16 13:50:52 EDT 2004


I figured out how to do it in its simplest form...

import sys


for arg in sys.argv:
    print "arg: ", arg


I think I saw that in the tutorial, i'd forgotten how though.


David
-------
Tracfone: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963





More information about the Python-list mailing list