[issue9264] trace.py documentation is incomplete

Eli Bendersky report at bugs.python.org
Sat Nov 27 09:52:48 CET 2010

Eli Bendersky <eliben at gmail.com> added the comment:

There's something weird going on with cmdoption... I've applied for subscription to the docs mailing list, but while I'm awaiting moderator approval, here's the brain-dump. Suppose this option description:

.. program:: trace

.. cmdoption:: -c, --count

   Blah blah blah

And now this reference:

This is a test long :option:`--count` and then short :option:`-c`, test.

Only the -c gets linked to ..cmdoption, not --count.
If I list --count before -c in ..cmdoption, then it's the other way around. What makes it kinda work (link both the long and short names) is:

.. cmdoption:: -c

   Blah blah blah

But this isn't standard (although it doesn't look too bad). Actually, the original listing (the short name first, then the long one) is customary in the library docs.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list