Re: The bake-off
Guido van Rossum <[email protected]> Thu, 30 May 2002 08:22:26 -0400
| Newsgroups | gmane.comp.python.getopt |
|---|---|
| Message-ID | <[email protected]> |
> There was some discussion about the use of conflicting options, > resulting from the practice of aliasing commands. Whether things > like "--verbose --quiet" were allowable proved to be a point of > contention. Hm, obviously the last option wins; it's a common trick to alias a command to specify a bunch of default options, and it's useful to override those explicitly by adding more options to the alias invocation. > > As an exercice in how easy each of the three alternatives makes it to > > change the option set, I'd like to see each version augmented with > > this feature. There may be no config file yet, so maybe the default > > values will have to be specified in a different way, like as globals. > > The code to add that shouldn't be measured for the comparison below. > > So, you need each example to include the extra baggage which sets default > values. Yes > Do you want to see implementations of mechanisms for validating > types and resolving option conflicts as well? If you think it helps, sure. --Guido van Rossum (home page: http://www.python.org/~guido/)