diff options
author | Georg Brandl <georg@python.org> | 2008-03-25 08:39:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-25 08:39:10 (GMT) |
commit | 799b372f3174172b1c295bb9dec323a44a263cd8 (patch) | |
tree | e56fc8e4d734870d0b8eceafd6dd7f62c5d842be | |
parent | 1e7c37514db417a495a1118c0b6d753d88249853 (diff) | |
download | cpython-799b372f3174172b1c295bb9dec323a44a263cd8.zip cpython-799b372f3174172b1c295bb9dec323a44a263cd8.tar.gz cpython-799b372f3174172b1c295bb9dec323a44a263cd8.tar.bz2 |
#2476: document that %default feature is new in 2.4.
-rw-r--r-- | Doc/library/optparse.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index 68b5709..d72e387 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -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 |