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

2005-08-03 Thread Jay Loden
I think it was just a typo for "the python distro" that came out as "the epython distro"... On Thursday 21 July 2005 9:15 pm, Danny Yoo wrote: > On Thu, 21 Jul 2005, Joseph Quigley wrote: > > optparse.. Can I download that as a module or do I have to download > > epython? > > Hi Joseph, > > optpa

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

2005-07-21 Thread Danny Yoo
On Thu, 21 Jul 2005, Joseph Quigley wrote: > optparse.. Can I download that as a module or do I have to download > epython? Hi Joseph, optparse derives from a hird-party library called Optik, so in a pinch, you can probably just use Optik: http://optik.sourceforge.net/ It's also possible

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

2005-07-21 Thread Joseph Quigley
optparse.. Can I download that as a module or do I have to download epython? Thanks, JQ Hugo González Monteverde wrote: > 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

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

2005-07-19 Thread Hugo González Monteverde
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... Hugo Joseph Quigley wrote: > How do I add an argument

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

2005-07-18 Thread Joseph Quigley
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/listin

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

2005-07-18 Thread Jeffrey Maitland
Well I use the getopt module. so in my foo.py it would be something like. import getopt try: opts, args = getopt.getopt(sys.argv[1:], "U:u:P:p:H:h:?", ["Username=", "username=", "Password=", "password=", "Help=","help="]) except getopt.GetoptError: print :nothing specila just an error"