[Tutor] How do I add an argument too...

Joseph Quigley cpu.crazy at gmail.com
Mon Jul 18 19:38:07 CEST 2005


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



More information about the Tutor mailing list