]> granicus.if.org Git - python/commitdiff
#2476: document that %default feature is new in 2.4.
authorGeorg Brandl <georg@python.org>
Tue, 25 Mar 2008 08:39:10 +0000 (08:39 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 25 Mar 2008 08:39:10 +0000 (08:39 +0000)
Doc/library/optparse.rst

index 68b5709e98a4a604dff720a1c8cba20e3608313c..d72e387a224caeea915ea37769253e9988fde2de 100644 (file)
@@ -534,10 +534,11 @@ help message:
   description "write output to FILE". This is a simple but effective way to make
   your help text a lot clearer and more useful for end users.
 
-* options that have a default value can include ``%default`` in the help
-  string---\ :mod:`optparse` will replace it with :func:`str` of the option's
-  default value.  If an option has no default value (or the default value is
-  ``None``), ``%default`` expands to ``none``.
+.. versionadded:: 2.4
+   Options that have a default value can include ``%default`` in the help
+   string---\ :mod:`optparse` will replace it with :func:`str` of the option's
+   default value.  If an option has no default value (or the default value is
+   ``None``), ``%default`` expands to ``none``.
 
 When dealing with many options, it is convenient to group these
 options for better help output.  An :class:`OptionParser` can contain