Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
65506f78
Commit
65506f78
authored
Apr 02, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Horrible hack to split up code '--' to prevent
latex2html from collapsing it into '-'.
parent
16d63840
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Doc/lib/libgetopt.tex
Doc/lib/libgetopt.tex
+4
-2
Doc/libgetopt.tex
Doc/libgetopt.tex
+4
-2
No files found.
Doc/lib/libgetopt.tex
View file @
65506f78
...
...
@@ -6,7 +6,9 @@ This module helps scripts to parse the command line arguments in
It supports the same conventions as the
\UNIX
{}
\code
{
getopt()
}
function (including the special meanings of arguments of the form
\samp
{
-
}
and
\samp
{
--
}
). Long options similar to those supported by
`
\code
{
-
}
' and `
\code
{
-
}
\code
{
-
}
').
% That's to fool latex2html into leaving the two hyphens alone!
Long options similar to those supported by
GNU software may be used as well via an optional third argument.
It defines the function
\code
{
getopt.getopt(args, options [, long
_
options])
}
...
...
@@ -24,7 +26,7 @@ followed by a colon (i.e., the same format that \UNIX{}
\code
{
getopt()
}
uses).
The third option, if specified, is a list of strings with the names of
the long options which should be supported. The leading
\code
{
'--'
}
the long options which should be supported. The leading
\code
{
'-
}
\code
{
-'
}
characters should not be included in the option name. Options which
require an argument should be followed by an equal sign (
\code
{
'='
}
).
The return value consists of two elements: the first is a list of
...
...
Doc/libgetopt.tex
View file @
65506f78
...
...
@@ -6,7 +6,9 @@ This module helps scripts to parse the command line arguments in
It supports the same conventions as the
\UNIX
{}
\code
{
getopt()
}
function (including the special meanings of arguments of the form
\samp
{
-
}
and
\samp
{
--
}
). Long options similar to those supported by
`
\code
{
-
}
' and `
\code
{
-
}
\code
{
-
}
').
% That's to fool latex2html into leaving the two hyphens alone!
Long options similar to those supported by
GNU software may be used as well via an optional third argument.
It defines the function
\code
{
getopt.getopt(args, options [, long
_
options])
}
...
...
@@ -24,7 +26,7 @@ followed by a colon (i.e., the same format that \UNIX{}
\code
{
getopt()
}
uses).
The third option, if specified, is a list of strings with the names of
the long options which should be supported. The leading
\code
{
'--'
}
the long options which should be supported. The leading
\code
{
'-
}
\code
{
-'
}
characters should not be included in the option name. Options which
require an argument should be followed by an equal sign (
\code
{
'='
}
).
The return value consists of two elements: the first is a list of
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment