Most viewed recipes tagged "option_parsing"http://code.activestate.com/recipes/tags/option_parsing/views/2010-06-03T19:16:43-07:00ActiveState Code RecipesCommand Line Options and Args Hate'em? Me Too! (Python)
2010-06-03T19:16:43-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577238-command-line-options-and-args-hateem-me-too/
<p style="color: grey">
Python
recipe 577238
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/option/">option</a>, <a href="/recipes/tags/optionparser/">optionparser</a>, <a href="/recipes/tags/option_parsing/">option_parsing</a>).
Revision 5.
</p>
<p>I am all about trying to make development easier and reduce mundane tasks, especially
dealing with commandline args and getopt, OptParse, argparse sorry just not a fan. Argparse-cli
is really cool if you want low level control. I just got tired of writing tons of conditionals, labels, limited type handling, and having to do all of it over and over for every commandline project so help end the madness I wrote PyOpts. </p>
WSGI option parsing & type conversion (Python)
2009-05-28T16:32:11-07:00Brendan O'Connorhttp://code.activestate.com/recipes/users/4170520/http://code.activestate.com/recipes/576784-wsgi-option-parsing-type-conversion/
<p style="color: grey">
Python
recipe 576784
by <a href="/recipes/users/4170520/">Brendan O'Connor</a>
(<a href="/recipes/tags/option_parsing/">option_parsing</a>, <a href="/recipes/tags/wsgi/">wsgi</a>).
Revision 2.
</p>
<p>fetches named parameters from the WSGI querystring, plus defaults for missing values, and type conversions so you dont accidentally have strings when you want numbers.</p>