This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients belopolsky, docs@python, eli.bendersky, eric.araujo, terry.reedy
Date 2010-11-27.08:52:45
SpamBayes Score 3.038412e-09
Marked as misclassified No
Message-id <1290847968.46.0.913525833929.issue9264@psf.upfronthosting.co.za>
In-reply-to
Content
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
               --count

   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.
History
Date User Action Args
2010-11-27 08:52:48eli.benderskysetrecipients: + eli.bendersky, terry.reedy, belopolsky, eric.araujo, docs@python
2010-11-27 08:52:48eli.benderskysetmessageid: <1290847968.46.0.913525833929.issue9264@psf.upfronthosting.co.za>
2010-11-27 08:52:45eli.benderskylinkissue9264 messages
2010-11-27 08:52:45eli.benderskycreate