diff options
Diffstat (limited to 'Doc/library/optparse.rst')
-rw-r--r-- | Doc/library/optparse.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index 7989d33..3805d96 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -794,7 +794,7 @@ And to define an option with only a long option string:: The keyword arguments define attributes of the new Option object. The most important option attribute is :attr:`action`, and it largely determines which other attributes are relevant or required. If you pass irrelevant option -attributes, or fail to pass required ones, :mod:`optparse` raises an +attributes, or fail to pass required ones, :mod:`optparse` raises an :exc:`OptionError` exception explaining your mistake. An option's *action* determines what :mod:`optparse` does when it encounters |