How do I add an argument too my program (with sys.argv) so that at a 
console I can type:

    python foo.py -info

or
    python foo.py open /home/joe/foo.txt

Thanks,
    Joe

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to