Simon Willison’s Weblog

Subscribe
Atom feed for optparse

1 item tagged “optparse”

2009

optfunc. Command line parsing libraries in Python such as optparse frustrate me because I can never remember how to use them without consulting the manual. optfunc is a new experimental interface to optparse which works by introspecting a function definition (including its arguments and their default values) and using that to construct a command line argument parser. Feedback and suggestions welcome!

# 28th May 2009, 7:38 pm / commandlines, github, introspection, optfunc, optparse, projects, python