diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-09-06 13:04:02 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-09-06 13:04:02 (GMT) |
commit | 810f807b1bc66c1179879911179be0df9a2462f8 (patch) | |
tree | 06667e1df67a400775224733c2db9cdb4cd00193 /Doc | |
parent | 48a937ab41907f6eaa22ffc38e26a019c9461d1c (diff) | |
download | cpython-810f807b1bc66c1179879911179be0df9a2462f8.zip cpython-810f807b1bc66c1179879911179be0df9a2462f8.tar.gz cpython-810f807b1bc66c1179879911179be0df9a2462f8.tar.bz2 |
#3040: include 'dest' argument in example; trim some trailing whitespace
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/optparse.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index 4bf544c..d74256d 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -96,7 +96,7 @@ argument ``sys.argv[1:]``, or of some other list provided as a substitute for ``sys.argv[1:]``". -option +option an argument used to supply extra information to guide or customize the execution of a program. There are many different syntaxes for options; the traditional Unix syntax is a hyphen ("-") followed by a single letter, e.g. ``"-x"`` or @@ -468,7 +468,7 @@ user-friendly (documented) options:: action="store_true", dest="verbose", default=True, help="make lots of noise [default]") parser.add_option("-q", "--quiet", - action="store_false", dest="verbose", + action="store_false", dest="verbose", help="be vewwy quiet (I'm hunting wabbits)") parser.add_option("-f", "--filename", metavar="FILE", help="write output to FILE"), @@ -1637,7 +1637,7 @@ arguments:: setattr(parser.values, option.dest, value) [...] - parser.add_option("-c", "--callback", + parser.add_option("-c", "--callback", dest="vararg_attr", action="callback", callback=vararg_callback) The main weakness with this particular implementation is that negative numbers |