]> granicus.if.org Git - python/commitdiff
Fixing bug 405999 -- clarifying differences between Python's
authorMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 07:33:08 +0000 (07:33 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 07:33:08 +0000 (07:33 +0000)
getopt and GNU getopt -- Python is like classical UNIX getopt.

Doc/lib/libgetopt.tex

index 563460b30b55ec1f4a790e27fb72b17964ebc1be..c96c3cfff4a0ef1cf1985575ae44a472eebe5c4a 100644 (file)
@@ -25,6 +25,10 @@ recognize, with options that require an argument followed by a colon
 (\character{:}; i.e., the same format that \UNIX{}
 \cfunction{getopt()} uses).
 
+\strong{Note:} Unlike GNU \cfunction{getopt()}, after a non-option
+argument, all further arguments are considered also non-options.
+This is similar to the way non-GNU \UNIX{} systems work.
+
 \var{long_options}, if specified, must be a list of strings with the
 names of the long options which should be supported.  The leading
 \code{'-}\code{-'} characters should not be included in the option