[Tutor] How do I add an argument too...
Hugo González Monteverde
hugonz at h-lab.net
Tue Jul 19 19:19:14 CEST 2005
I use optparse wich can take some getting used to in the beginnning, but
it help you easily create very powerful command line options. I is
shipped with th epython distro. As soon as I get an example I wrote, I
will post it to the list...
Joseph Quigley wrote:
> How do I add an argument too my program (with sys.argv) so that at a
> console I can type:
> python foo.py -info
> python foo.py open /home/joe/foo.txt
> Tutor maillist - Tutor at python.org
More information about the Tutor