Re: [getopt-sig] Re: Adopting Optik
David Goodger <[email protected]> Thu, 14 Nov 2002 00:46:09 -0500
| Newsgroups | gmane.comp.python.devel,gmane.comp.python.getopt |
|---|---|
| Message-ID | <B9F8A2D0.2BB8B%[email protected]> |
Guido van Rossum wrote: > Of all the names suggested so far, I like optlib and argvparse equally > well. Can we do a tally of votes for those, to decide? optlib > argvparse To me, "argvparse" is a bit misleading. Docutils is not only using Optik for command-line option parsing, but also for all runtime settings handling, even when executed programmatically (i.e., no command-line options to parse). I originally named the optik.Values object "options", but recently changed it to "settings" to better reflect its true nature. Optik also interfaces well with config files via ConfigParser. Using Optik with ConfigParser and the runtime settings specs from each of Docutils' components feels just like applying a design pattern: it works, it clicks, it feels *right*. Not sure if it's an existing pattern or a new one though. -- David Goodger <[email protected]> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/