mirror of
https://github.com/python/cpython.git
synced 2026-03-27 15:10:56 +00:00
#2476: document that %default feature is new in 2.4.
This commit is contained in:
parent
1e7c37514d
commit
799b372f31
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue