summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-12-21 22:50:05 (GMT)
committerFred Drake <fdrake@acm.org>1999-12-21 22:50:05 (GMT)
commit76e6da38c0f3e15a23fce4d3137e7a4d6d16607b (patch)
tree9ed6ac479d48a48cc065e79d5672124998645774
parent80c33e562ddcc0af4eed6708aa30603972e62cfc (diff)
downloadcpython-76e6da38c0f3e15a23fce4d3137e7a4d6d16607b.zip
cpython-76e6da38c0f3e15a23fce4d3137e7a4d6d16607b.tar.gz
cpython-76e6da38c0f3e15a23fce4d3137e7a4d6d16607b.tar.bz2
Document GetoptError and label error an alias.
-rw-r--r--Doc/lib/libgetopt.tex11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/lib/libgetopt.tex b/Doc/lib/libgetopt.tex
index 72824a7..1c17ab5 100644
--- a/Doc/lib/libgetopt.tex
+++ b/Doc/lib/libgetopt.tex
@@ -41,12 +41,19 @@ found, thus allowing multiple occurrences. Long and short options may
be mixed.
\end{funcdesc}
-\begin{excdesc}{error}
+\begin{excdesc}{GetoptError}
This is raised when an unrecognized option is found in the argument
list or when an option requiring an argument is given none.
The argument to the exception is a string indicating the cause of the
error. For long options, an argument given to an option which does
-not require one will also cause this exception to be raised.
+not require one will also cause this exception to be raised. The
+attributes \member{msg} and \member{opt} give the error message and
+related option; if there is no specific option to which the exception
+relates, \member{opt} is an empty string.
+\end{excdesc}
+
+\begin{excdesc}{error}
+Alias for \exception{GetoptError}; for backward compatibility.
\end{excdesc}