<div dir="ltr">Currently the module handles positional arguments with one decorator and keyword arguments (with '-' switches) using another decorator. Maybe I should have linked to this more complete examples page:<div>
<a href="http://code.google.com/p/pyopt/wiki/Examples">http://code.google.com/p/pyopt/wiki/Examples</a></div><div><br></div><div>Steven: Forgive me, I am new to this list and now after checking I'm guessing you mean "stdlib-sig" is more fitting. So I'll move this discussion there.</div>
<div><br></div><div>Just to clarify why I feel getopt/optparse aren't as pythonic - to me they feel clunky in that I need alot of ultra-explicit, extra-long lines to do some very basic things. The python I'm used to allows me to use open('filename').read() with reasonable default parameters. Now that I think of it, actually wrapping optparse might have been an easier implementation route for some of the functionality...</div>
<div><br></div><div>Yuv</div><div><div><div><br><div class="gmail_quote">On Sun, Sep 6, 2009 at 10:39 PM, Sean Reifschneider <span dir="ltr"><<a href="mailto:jafo@tummy.com">jafo@tummy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 09/06/2009 02:21 AM, Steven D'Aprano wrote:<br>
> But handling the dash command line options is exactly what the module is<br>
> about.<br>
<br>
</div>The example at the referenced page looks like it's all about handling<br>
non-option arguments.  I must be missing something.<br>
<div><div></div><div class="h5"><br>
Sean<br>
--<br>
Sean Reifschneider, Member of Technical Staff <<a href="mailto:jafo@tummy.com">jafo@tummy.com</a>><br>
<a href="http://tummy.com" target="_blank">tummy.com</a>, ltd. - Linux Consulting since 1995: Ask me about High Availability<br>
<br>
</div></div><br>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Yuv<br><a href="http://hzk.co.il">hzk.co.il</a><br>
</div></div></div></div>