From: David G. <go...@py...> - 2003-12-18 15:31:16
|
Beni Cherniavsky wrote: > I think the best way would be to add a variant of ``--source-url`` > (can't think of a good name, only ``--source-url-hint`` but that's > unobvious) that won't change `source_link`. The benefit of a new > option is that you don't lose the convenient step-saving behavior. That would work. How about this: * Change the code as per your original patch (separate display from URL). * Add a new ``--set-source-url`` option, which sets ``settings.source_url`` only (doesn't set ``settings.source_link``). * Change the behavior of ``--source-url`` to set ``settings.source_url`` to the URL, plus set ``settings.source_link`` to True. Therefore, ``--source-url`` becomes equivalent to ``--set-source-url`` and ``--source-link`` combined. This would be slightly backwards-incompatible with respect to "source-url" in config files, but I doubt anyone uses it that way. -- David Goodger http://starship.python.net/~goodger For hire: http://starship.python.net/~goodger/cv Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) |