We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b2a88 commit 87bd344Copy full SHA for 87bd344
1 file changed
Doc/library/getopt.rst
@@ -59,6 +59,8 @@ exception:
59
option ``--fo`` will match as ``--foo``, but ``--f`` will
60
not match uniquely, so :exc:`GetoptError` will be raised.
61
62
+ If *longopts* is a string it gets treated as a list of a single element.
63
+
64
The return value consists of two elements: the first is a list of ``(option,
65
value)`` pairs; the second is the list of program arguments left after the
66
option list was stripped (this is a trailing slice of *args*). Each
0 commit comments