On Fri, May 8, 2009 at 9:09 PM, Terry Carroll wrote:
> It's exactly what I was looking for. Thanks very much.
>
> Now I'm going to have to re-read the docs and see why I couldn't pick that
> up from them.
You have to read pretty far down, to the sections on Option attributes
and Standard Optio
"Terry Carroll" wrote
The toy summary is that I want to have the following command format:
prognam -f FORMAT
Where FORMAT, if specified, must be one of "X", "Y", or "Z".
In otherwords, if the user enters:
progname -f X
It runs, producing its output in format X. Similar if "Y" or "Z" is
On Sat, 9 May 2009, Sander Sweers wrote:
> Is the below what you are looking for?
It's exactly what I was looking for. Thanks very much.
Now I'm going to have to re-read the docs and see why I couldn't pick that
up from them.
___
Tutor maillist -
2009/5/9 Terry Carroll :
> In otherwords, if the user enters:
>
> progname -f X
>
> It runs, producing its output in format X. Similar if "Y" or "Z" is
> specified instead of "X".
>
> But if the user specifies
>
> progname -f A
>
> I want it to spit up because A is not a recognized format.
Is t
I'm tryng to use optparse for the first time.
The toy summary is that I want to have the following command format:
prognam -f FORMAT
Where FORMAT, if specified, must be one of "X", "Y", or "Z".
In otherwords, if the user enters:
progname -f X
It runs, producing its output in format X. Sim