Re: optparse - required options

2007-08-24 Thread Robert Dailey
Thank you VERY much for mentioning argparse- this is EXACTLY what I needed! Thank you! On 8/23/07, Steven Bethard <[EMAIL PROTECTED]> wrote: > > Omari Norman wrote: > > On Mon, Aug 20, 2007 at 05:31:00PM -0400, Jay Loden wrote: > >> Robert Dailey wrote: > >>> Well, I don't know what is wrong with

Re: optparse - required options

2007-08-23 Thread Steve Holden
Steven Bethard wrote: > Omari Norman wrote: >> On Mon, Aug 20, 2007 at 05:31:00PM -0400, Jay Loden wrote: >>> Robert Dailey wrote: Well, I don't know what is wrong with people then. I don't see how required arguments are of bad design. >>> I tend to agree...while "required option" may be

Re: optparse - required options

2007-08-23 Thread Steven Bethard
Omari Norman wrote: > On Mon, Aug 20, 2007 at 05:31:00PM -0400, Jay Loden wrote: >> Robert Dailey wrote: >>> Well, I don't know what is wrong with people then. I don't see how >>> required arguments are of bad design. > >> I tend to agree...while "required option" may be an oxymoron in >> English,

Re: optparse - required options

2007-08-23 Thread Omari Norman
On Mon, Aug 20, 2007 at 05:31:00PM -0400, Jay Loden wrote: > Robert Dailey wrote: > > Well, I don't know what is wrong with people then. I don't see how > > required arguments are of bad design. Some command-line applications are > > built around performing tasks based on information received. Comp

Re: optparse - required options

2007-08-20 Thread Jay Loden
Robert Dailey wrote: > Well, I don't know what is wrong with people then. I don't see how > required arguments are of bad design. Some command-line applications are > built around performing tasks based on information received. Compilers, > for example. A compiler can't do much of anything unless y

Re: optparse - required options

2007-08-20 Thread Robert Dailey
Well, I don't know what is wrong with people then. I don't see how required arguments are of bad design. Some command-line applications are built around performing tasks based on information received. Compilers, for example. A compiler can't do much of anything unless you give it at the very least

optparse - required options

2007-08-20 Thread Robert Dailey
Hi, I've been reading through the python documentation on the optparse module and I was unable to find out how to specify if an option is optional or required. The documentation vaguely states that actions can be used to do this, however I was not able to figure out how. If anyone could help I'd g