Sandro Tosi
effb43bc38
merge with 3.2
2012-08-12 10:49:40 +02:00
Sandro Tosi
ee903c5125
add missing parenthesis to 'action' argparse doc; thanks to kishkin from docs@
2012-08-12 10:49:26 +02:00
Senthil Kumaran
93e3d3ac09
merge from 3.2 - Issue13685
2012-06-26 14:18:19 +08:00
Senthil Kumaran
f21804ad61
Issue #13685 - Update argparse help message for % sign usage.
2012-06-26 14:17:19 +08:00
Ezio Melotti
df5bedbf88
#14034 : merge argparse tutorial from 3.2.
2012-05-06 16:34:43 +03:00
Ezio Melotti
6cc7a41c2f
#14034 : added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
2012-05-06 16:15:35 +03:00
R David Murray
3288e948f3
Merge #10423 : clarify options vs args in argparse discussion of optparse
...
Patch by Sandro Tosi.
2012-03-30 18:08:29 -04:00
R David Murray
5e0c57142d
#10423 : clarify options vs args in argparse discussion of optparse
...
Patch by Sandro Tosi.
2012-03-30 18:07:42 -04:00
Sandro Tosi
70ea34de85
Issue #14410 : merge with 3.2
2012-03-26 19:36:44 +02:00
Sandro Tosi
99e7d0706e
Issue #14410 : fix typo in argparse doc; patch by Tshepang Lekhonkhobe
2012-03-26 19:36:23 +02:00
Éric Araujo
a7e594b9a5
Merge 3.2
2012-02-20 01:53:09 +01:00
Éric Araujo
c3ef037ee1
Add missing “::” markup.
...
Also wrap two looong lines.
2012-02-20 01:44:55 +01:00
Sandro Tosi
32ac92cd4a
Issue #13605 : merge with 3.2
2012-02-19 19:54:23 +01:00
Sandro Tosi
0467686e07
Issue #13605 : use print() in argparse nargs example
2012-02-19 19:54:00 +01:00
Sandro Tosi
6a7b855a97
Issue #13605 : merge with 3.2
2012-01-19 22:23:17 +01:00
Sandro Tosi
da8e11ac71
Issue #13605 : more meaningful example + fixes
2012-01-19 22:23:00 +01:00
Sandro Tosi
83d32c9135
Issue #13605 : merge with 3.2
2012-01-19 22:00:21 +01:00
Sandro Tosi
16bd0b4463
Issue #13605 : add documentation for nargs=argparse.REMAINDER
2012-01-19 21:59:55 +01:00
Sandro Tosi
98492a50ea
Issue #10772 : add count and help argparse action; patch by Marc Sibson
2012-01-04 23:25:04 +01:00
Sandro Tosi
ea320abcae
Issue #9349 : add argparse.SUPPRESS to help doc
2012-01-03 18:37:03 +01:00
Sandro Tosi
412d0f2f98
merge with 3.2
2012-01-04 23:25:20 +01:00
Sandro Tosi
5c91242f88
merge with 3.2
2012-01-03 18:37:46 +01:00
Jason R. Coombs
f28cf7abcf
Issue #13540 : Expanded argparse documents to clarify the action API
2011-12-13 23:36:45 -05:00
Eli Bendersky
28a08205c5
Issue #13191 : typo in argparse docs
2011-11-11 10:58:36 +02:00
Eli Bendersky
a7795dbe9a
Issue #13191 : typo in argparse docs
2011-11-11 10:57:01 +02:00
Florent Xicluna
74e6495a20
Fixes #13270 : obsolete reference to old-style/new-style classes.
2011-10-28 11:21:19 +02:00
Florent Xicluna
acfc97a05a
Merge 3.2
2011-10-28 11:23:25 +02:00
Ezio Melotti
f10644983e
Merge with 3.2.
2011-10-19 11:06:26 +03:00
Éric Araujo
b8edbdf4b9
Merge doc changes from 3.2.
...
rstlint complains about packaging docs but I’m working on those in
another patch.
2011-09-01 05:57:12 +02:00
Éric Araujo
37b5f9eebc
Fix some misuses of Sphinx roles and one typo
2011-09-01 03:19:30 +02:00
Éric Araujo
24d6cc6f4f
Merge 3.2
2011-08-19 03:19:36 +02:00
Éric Araujo
543edbdab8
Don’t quote characters twice.
...
``code`` markup is enough to mark command-line fragments or to talk
about a character. ``'c'`` is still used for actual Python string
objects. I did a similar change in optparse.rst in r86521.
I’ve also ported two minor changes from the 3.3 version of the file
(removing an unnecessary module name in a class directive, adding a
comma).
2011-08-19 01:45:12 +02:00
Éric Araujo
fde9242631
Don’t use “arg” for “argument”
2011-08-19 01:30:26 +02:00
Éric Araujo
19f9b71ffe
Add a few missing source links from 2.7 and harmonize lib docs headers
2011-08-19 00:49:18 +02:00
Éric Araujo
e9715b9001
Merge 3.2
2011-08-10 21:42:23 +02:00
Éric Araujo
d9d7bca6da
Use real word in English text (i.e. not code)
2011-08-10 04:19:03 +02:00
Senthil Kumaran
90ceb4772b
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.
2011-08-03 07:43:01 +08:00
Senthil Kumaran
86a1a8974d
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.
2011-08-03 07:42:18 +08:00
Éric Araujo
516c51c14c
Merge from 3.2 ( #9254 , #8982 , #9788 )
2011-07-29 18:10:12 +02:00
Éric Araujo
63b18a4445
Add a link target for argparse.Namespace ( #8982 )
2011-07-29 17:59:17 +02:00
Ezio Melotti
707d1e6cea
Merge with 3.2.
2011-04-22 01:57:47 +03:00
Ezio Melotti
5569e9b150
Fix some more markup glitches in argparse doc.
2011-04-22 01:42:10 +03:00
Ezio Melotti
7817e3b151
#11904-#11905: Merge typo fixes with 3.2.
2011-04-21 23:12:53 +03:00
Ezio Melotti
dca309d137
#11905 : fix missing full stop in argparse doc. Noticed by Vladimir Rutsky.
2011-04-21 23:09:27 +03:00
Ezio Melotti
2f1db7def9
#11904 : fix indentation in argparse doc. Noticed by Vladimir Rutsky.
2011-04-21 23:06:48 +03:00
Ezio Melotti
ccb054759a
#11902 : Merge with 3.2.
2011-04-21 22:58:40 +03:00
Ezio Melotti
00f53afdda
#11902 : Fix typo in argparse doc. Noticed by Vladimir Rutsky.
2011-04-21 22:56:51 +03:00
Ezio Melotti
5bba6c2785
Merge with 3.2.
2011-04-21 16:13:44 +03:00
Ezio Melotti
0ee9c1be76
Add the :mod: role where it was missing.
2011-04-21 16:12:17 +03:00
Ezio Melotti
c6f079d1b2
#11885 : Merge with 3.2.
2011-04-21 15:29:04 +03:00
Ezio Melotti
cca4ef8cba
#11885 : capitalize Python.
2011-04-21 15:26:46 +03:00
Ezio Melotti
2476ee32b1
Merge with 3.2.
2011-04-16 23:14:40 +03:00
Ezio Melotti
2409d770d9
Fix a few more hyphens in argparse.rst
2011-04-16 23:13:50 +03:00
Georg Brandl
884843dd35
Fix duplicate "is".
2011-04-16 17:02:58 +02:00
Georg Brandl
1d827ff43d
Consistency fix: "command line" is the noun, "command-line" the adjective.
2011-04-16 16:44:54 +02:00
Georg Brandl
ab8d93c03a
Backport 8a9f8f34d9d5.
2011-04-16 17:05:30 +02:00
Georg Brandl
69518bc765
Consistency fix: "command line" is the noun, "command-line" the adjective.
2011-04-16 16:44:54 +02:00
Steven Bethard
b04d70d993
Issue #9343 : Document that argparse parent parsers must be configured before their children. (Merge from 3.2.)
2011-03-26 21:51:56 +01:00
Steven Bethard
d186f99d00
Issue #9343 : Document that argparse parent parsers must be configured before their children.
2011-03-26 21:49:00 +01:00
Steven Bethard
0a3a7d35ca
Issue #8982 : Improve the documentation for the argparse Namespace object. (Merge from 3.2.)
2011-03-26 19:55:36 +01:00
Steven Bethard
d8f2d50c20
Issue #8982 : Improve the documentation for the argparse Namespace object.
2011-03-26 19:50:06 +01:00
Steven Bethard
0331e906d6
Issue #11174 : Add argparse.MetavarTypeHelpFormatter, which uses type names
...
for the names of optional and positional arguments in help messages.
2011-03-26 14:48:04 +01:00
Fred Drake
c7eb7894d3
Merged revisions 88717 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88717 | fred.drake | 2011-03-03 00:27:17 -0500 (Thu, 03 Mar 2011) | 2 lines
issue 11372: use range instead of xrange
........
2011-03-03 05:29:59 +00:00
Fred Drake
446230664b
issue 11372: use range instead of xrange
2011-03-03 05:27:17 +00:00
Raymond Hettinger
a199368b23
More source links.
2011-01-27 01:20:32 +00:00
Georg Brandl
04536b0edf
#10871 : "file" does not exist anymore in Python 3. Also adapt the reprs of opened file objects.
2011-01-09 09:31:01 +00:00
Georg Brandl
c9007081ef
Wrap some long examples and signatures.
2011-01-09 09:04:08 +00:00
R. David Murray
32e1771daf
#10728 : the default for printing help is sys.stdout, not stderr.
2010-12-18 16:39:06 +00:00
Steven Bethard
fd311a712d
Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker.
2010-12-18 11:19:23 +00:00
Raymond Hettinger
677e10a45e
Add example for the entry for argparse
2010-12-07 06:45:30 +00:00
Éric Araujo
28053fb174
Remove unnecessary `object` base class in docs ( #10366 ).
...
Also add a note about inheritance from `object` being default.
2010-11-22 03:09:19 +00:00
Georg Brandl
e0bf91d597
Some markup and style fixes in argparse docs.
2010-10-17 10:34:28 +00:00
Georg Brandl
9375492be3
#9112 : document error() and exit() methods of ArgumentParser.
2010-10-17 10:28:04 +00:00
Georg Brandl
682d7e0e07
Fix errors found by "make suspicious".
2010-10-06 10:26:05 +00:00
R. David Murray
88c49fe320
#9444 : use first of prefix_chars for help opt instead of raising error
...
An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character. This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.
Fix by Theodore Turocy, unit tests by Catherine Devlin.
2010-08-03 17:56:09 +00:00
Georg Brandl
571a953590
Fix indentation in example.
2010-07-26 17:00:20 +00:00
Ezio Melotti
f82340da9c
Merged revisions 81318 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81318 | ezio.melotti | 2010-05-19 03:32:52 +0300 (Wed, 19 May 2010) | 1 line
Fix typo in argparse doc.
........
2010-05-27 22:38:16 +00:00
Steven Bethard
5971096472
Merged revisions 81490 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81490 | steven.bethard | 2010-05-23 19:38:00 -0700 (Sun, 23 May 2010) | 1 line
argparse documentation updates (including updates to optparse and getopt documentation that were promised in the PEP)
........
2010-05-24 03:21:08 +00:00
Georg Brandl
386bc6d380
Merged revisions 80150,80460-80461 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80150 | r.david.murray | 2010-04-17 17:45:38 +0200 (Sa, 17 Apr 2010) | 2 lines
Update link to Apple Publication Style guide.
........
r80460 | georg.brandl | 2010-04-25 12:16:00 +0200 (So, 25 Apr 2010) | 1 line
#8528 : fix typo.
........
r80461 | georg.brandl | 2010-04-25 12:17:27 +0200 (So, 25 Apr 2010) | 1 line
#8522 : use with statement instead of try-finally for file handling.
........
2010-04-25 10:19:53 +00:00
Benjamin Peterson
2614cda209
Merged revisions 78338,78345-78346,78561-78562,78566,78574,78581,78634,78660,78675 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78338 | andrew.kuchling | 2010-02-22 15:04:02 -0600 (Mon, 22 Feb 2010) | 4 lines
Remove Tools/modulator, a reference to it in the docs, and a screenshot of it.
(I asked the BDFL first, and he approved removing it. The last actual bugfix
to Tools/modulator was in 2001; since then all changes have been search-and-replace:
string methods, whitespace fixes, etc.)
........
r78345 | andrew.kuchling | 2010-02-22 17:10:52 -0600 (Mon, 22 Feb 2010) | 1 line
#7706 : DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).
........
r78346 | andrew.kuchling | 2010-02-22 17:12:00 -0600 (Mon, 22 Feb 2010) | 1 line
#7706 : add include guards where they're missing; required for Windows CE
........
r78561 | andrew.kuchling | 2010-03-01 13:51:43 -0600 (Mon, 01 Mar 2010) | 1 line
#7191 : describe more details of wbits parameter
........
r78562 | andrew.kuchling | 2010-03-01 14:11:57 -0600 (Mon, 01 Mar 2010) | 1 line
#7637 : avoid repeated-concatenation antipattern in example
........
r78566 | barry.warsaw | 2010-03-01 15:46:51 -0600 (Mon, 01 Mar 2010) | 4 lines
Manually copy patch for bug 7250 from the release26-maint branch. I suck
because I did this in the wrong order and couldn't smack svnmerge into
submission.
........
r78574 | benjamin.peterson | 2010-03-01 17:25:13 -0600 (Mon, 01 Mar 2010) | 1 line
remove CVS id
........
r78581 | michael.foord | 2010-03-02 08:22:15 -0600 (Tue, 02 Mar 2010) | 1 line
Link correction in documentation.
........
r78634 | benjamin.peterson | 2010-03-03 15:28:25 -0600 (Wed, 03 Mar 2010) | 1 line
rephrase
........
r78660 | dirkjan.ochtman | 2010-03-04 13:21:53 -0600 (Thu, 04 Mar 2010) | 4 lines
Try to fix buildbot breakage from r78384.
Thanks bitdancer and briancurtin for the help.
........
r78675 | florent.xicluna | 2010-03-04 19:12:14 -0600 (Thu, 04 Mar 2010) | 2 lines
These line should not be there.
........
2010-03-21 22:36:19 +00:00
Ezio Melotti
f8754a60a8
Update versionadded/changed.
2010-03-21 07:16:43 +00:00
Georg Brandl
93dc9eb2a3
Merged revisions 78760,78771-78773,78802,78922,78952 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78760 | georg.brandl | 2010-03-07 16:23:59 +0100 (So, 07 Mär 2010) | 1 line
#5341 : more built-in vs builtin fixes.
........
r78771 | georg.brandl | 2010-03-07 21:58:31 +0100 (So, 07 Mär 2010) | 1 line
#8085 : The function is called PyObject_NewVar, not PyObject_VarNew.
........
r78772 | georg.brandl | 2010-03-07 22:12:28 +0100 (So, 07 Mär 2010) | 1 line
#8039 : document conditional expressions better, giving them their own section.
........
r78773 | georg.brandl | 2010-03-07 22:32:06 +0100 (So, 07 Mär 2010) | 1 line
#8044 : document Py_{Enter,Leave}RecursiveCall functions.
........
r78802 | georg.brandl | 2010-03-08 17:28:40 +0100 (Mo, 08 Mär 2010) | 1 line
Fix typo.
........
r78922 | georg.brandl | 2010-03-13 14:41:58 +0100 (Sa, 13 Mär 2010) | 1 line
Update for new download location.
........
r78952 | georg.brandl | 2010-03-14 10:55:08 +0100 (So, 14 Mär 2010) | 1 line
#8137 : add iso-8859-16 to the standard encodings table.
........
2010-03-14 10:56:14 +00:00
Benjamin Peterson
b2deb118f5
convert to print function
2010-03-03 02:09:18 +00:00
Benjamin Peterson
98047eb806
Merged revisions 78613-78614 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78613 | benjamin.peterson | 2010-03-02 19:55:09 -0600 (Tue, 02 Mar 2010) | 1 line
edit for style
........
r78614 | benjamin.peterson | 2010-03-02 20:04:24 -0600 (Tue, 02 Mar 2010) | 1 line
fix Sphinx warnings
........
2010-03-03 02:07:08 +00:00
Benjamin Peterson
698a18aa9e
Merged revisions 78586-78593 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78586 | benjamin.peterson | 2010-03-02 16:03:03 -0600 (Tue, 02 Mar 2010) | 1 line
remove coding cookie as mandated by PEP 8
........
r78587 | benjamin.peterson | 2010-03-02 16:05:59 -0600 (Tue, 02 Mar 2010) | 1 line
set svn:eol-style
........
r78588 | benjamin.peterson | 2010-03-02 16:08:40 -0600 (Tue, 02 Mar 2010) | 1 line
remove another coding cookie
........
r78589 | georg.brandl | 2010-03-02 16:17:38 -0600 (Tue, 02 Mar 2010) | 1 line
Add some x-refs.
........
r78590 | benjamin.peterson | 2010-03-02 16:20:10 -0600 (Tue, 02 Mar 2010) | 1 line
enable running of argparse tests and fix two that failed in the new environment
........
r78591 | benjamin.peterson | 2010-03-02 16:23:33 -0600 (Tue, 02 Mar 2010) | 1 line
prevent warning filter adjustment from altering other tests
........
r78592 | benjamin.peterson | 2010-03-02 16:24:30 -0600 (Tue, 02 Mar 2010) | 1 line
use test_main() in __main__ section
........
r78593 | benjamin.peterson | 2010-03-02 16:26:25 -0600 (Tue, 02 Mar 2010) | 1 line
convert deprecated fail* methods to assert* variants
........
2010-03-02 22:34:37 +00:00
Steven Bethard
6d265699e6
Merged revisions 78576 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78576 | steven.bethard | 2010-03-02 00:38:09 -0800 (Tue, 02 Mar 2010) | 3 lines
Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
........
2010-03-02 09:22:57 +00:00