[Twisted-Python] Re: [Twisted-commits] Support --version
On Sun, Nov 10, 2002 at 04:45:39AM -0600, moshez CVS wrote:
Modified files: Twisted/twisted/python/usage.py 1.35 1.36
Log message: Support --version
This makes no sense. The Twisted version has nothing to do with the version of usage.Options-using applications. -- Christopher Armstrong << radix@twistedmatrix.com >> http://twistedmatrix.com/users/radix.twistd/
On Sun, 10 Nov 2002, Christopher Armstrong <radix@twistedmatrix.com> wrote:
This makes no sense. The Twisted version has nothing to do with the version of usage.Options-using applications.
...who can override opt_version() to report their own version. And if they don't, at least --version gives some useful output and immediate exit.
On 10 Nov 2002 15:26:28 -0000, Moshe Zadka <twisted@moshez.org> wrote:
...who can override opt_version() to report their own version. And if they don't, at least --version gives some useful output and immediate exit.
You're both right: I think there's a bit of a design hole in Options, since you can't override opt_version with an arg, and strings in the various data structures will be ignored in subclasses if it's a method in the superclass. Lowest-level class ought to always take precedence. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |
participants (3)
-
Christopher Armstrong -
Glyph Lefkowitz -
Moshe Zadka