From dd197e95c7ce9fca2438aeee32c6a9741b4f500f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 20 Oct 2007 13:36:24 +0000 Subject: Document new "cmdoption" directive. --- Doc/documenting/markup.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/documenting/markup.rst b/Doc/documenting/markup.rst index f85158b..618e7da 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: -- cgit v0.12