From: Georg Brandl Date: Sat, 20 Oct 2007 13:36:24 +0000 (+0000) Subject: Document new "cmdoption" directive. X-Git-Tag: v2.6a1~1162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd197e95c7ce9fca2438aeee32c6a9741b4f500f;p=thirdparty%2FPython%2Fcpython.git Document new "cmdoption" directive. --- diff --git a/Doc/documenting/markup.rst b/Doc/documenting/markup.rst index f85158b163f3..618e7dada752 100644 --- a/Doc/documenting/markup.rst +++ b/Doc/documenting/markup.rst @@ -212,6 +212,14 @@ The directives are: Describes a Python bytecode instruction. +.. describe:: cmdoption + + Describes a command line option or switch. Option argument names should be + enclosed in angle brackets. Example:: + + .. cmdoption:: -m + + Run a module as a script. There is also a generic version of these directives: