Option set and Optional option argument

Nicolas Couture <[email protected]> Mon, 28 Nov 2005 18:46:32 -0500
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
------=_Part_19412_10292742.1133221592592
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi fellow Optik users,

In certain circumstances I find the need to know if any options are set in
the Values instance returned by the OptionParser's parse_args() function an=
d
am wondering if I am the only one who would like to be able to run len()
against the Values instance ;-)

Is this need due to a bad design or order in my option parsing?

I have also felt a need for an optional option argument: I would like the
user to be able to provide a value when using an option but would also want
this option to have a default value. I have failed to use the `default'
argument in an Option instance (i.e. even after specifying a default, the
option still required the user to provide an argument to it)....

Any thoughts are welcome.

Thanks in advance,

------=_Part_19412_10292742.1133221592592
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi fellow Optik users,<br>
<br>
In certain circumstances I find the need to know if any options are set
in the Values instance returned by the OptionParser's parse_args()
function and am wondering if I am the only one who would like to be
able to run len() against the Values instance ;-)<br>
<br>
Is this need due to a bad design or order in my option parsing?<br>
<br>
I have also felt a need for an optional option argument: I would like
the user to be able to provide a value when using an option but would
also want this option to have a default value. I have failed to use the
`default' argument in an Option instance (i.e. even after specifying a
default, the option still required the user to provide an argument to
it)....<br>
<br>
Any thoughts are welcome.<br>
<br>
Thanks in advance,<br>

------=_Part_19412_10292742.1133221592592--


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click