On Fri, 17 Feb 2006 08:50:55 +0900 Jason Stubbs <[EMAIL PROTECTED]> wrote:
> So, I'm also moving toward just printing warnings for the time being. > However, we should probably figure out exactly how it should work and > then print warnings whenever any deprecated syntax is used. Not so > much for users and scripts, of which I can't see there being much of > a problem, but so that we can redo that whole bunch of code without > having to do: > > if incorrect_syntax: > print warning > make correct syntax There isn't really any code involved for "make correct syntax" as myaction doesn't include the --, we just strip those from "correct" actions, and I don't see a way to make a multi-purpose syntax correction function without knowing future cases. In the long we run we should probably replace the whole option parser stuff with some standard code anyway (getopt or similar). Marius -- Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was nothing. And God said, 'Let there be Light.' And there was still nothing, but you could see a bit better.
signature.asc
Description: PGP signature
