summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
Commit message (Collapse)AuthorAgeFilesLines
* Use the platform-independent way of calling a script from the shell: "python ↵Georg Brandl2013-10-061-4/+4
| | | | | | prog.py", not "prog.py" Found by Micheal Wells on docs@.
* Closes #11807: document argparse add_subparsers method better.Georg Brandl2013-10-061-1/+28
| | | | Patch by Filip Gruszczyński.
* Fix missing class name in markup. Found by Tanky Woo on docs@.Georg Brandl2013-10-061-1/+1
|
* Fix prefix_chars not being applied in help text example (reported by John ↵Georg Brandl2013-10-061-2/+2
| | | | Kooker on docs@)
* Update argparse docs to follow order of ArgumentParser() arguments.Andrew Svetlov2013-04-071-202/+203
|
* #16940: fix indentation in example.Ezio Melotti2013-01-121-2/+2
|
* Issue #16933: Improve choices examples in argparse documentation.Chris Jerdonek2013-01-121-23/+24
|
* grammatical fix; thanks to Alex Rudnick from docs@Sandro Tosi2013-01-111-1/+1
|
* #16796: fix typo. Patch by Michael Schurter.Ezio Melotti2012-12-271-1/+1
|
* - Issue #15935: Clarification of argparse docs, re: add_argument() type andBarry Warsaw2012-09-251-0/+14
| | | | default arguments. Patch contributed by Chris Jerdonek.
* #15831: document multiple signatures on different lines. Patch by Chris ↵Ezio Melotti2012-09-141-3/+6
| | | | Jerdonek.
* add missing parenthesis to 'action' argparse doc; thanks to kishkin from docs@Sandro Tosi2012-08-121-1/+1
|
* #14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.Ezio Melotti2012-05-061-0/+6
|
* #10423: clarify options vs args in argparse discussion of optparseR David Murray2012-03-301-2/+3
| | | | Patch by Sandro Tosi.
* Issue #14410: fix typo in argparse doc; patch by Tshepang LekhonkhobeSandro Tosi2012-03-261-2/+2
|
* Add missing “::” markup and wrap overlong linesÉric Araujo2012-02-201-18/+23
|
* Issue #13605: more meaningful example + fixesSandro Tosi2012-01-191-5/+5
|
* Issue #13605: add documentation for nargs=argparse.REMAINDERSandro Tosi2012-01-191-0/+11
|
* Issue #10772: add count and help argparse action; patch by Marc SibsonSandro Tosi2012-01-041-0/+13
|
* Issue #9349: add argparse.SUPPRESS to help docSandro Tosi2012-01-031-0/+11
|
* Note the store_true and store_false also create the appropriate defaults.Raymond Hettinger2011-11-201-4/+6
|
* Issue #13191: typo in argparse docsEli Bendersky2011-11-111-1/+1
|
* Fix some markup and one typoÉric Araujo2011-09-011-1/+1
|
* Backport source links from 3.x.Éric Araujo2011-08-191-1/+5
| | | | | Existing links have been updated to use the new reST role. In some files, I have also made cosmetic changes to the header.
* Synchronize argparse docs with 3.x versionsÉric Araujo2011-08-191-52/+52
|
* Fix closes issue12663 - Correcting the ArgumentParser.error description. ↵Senthil Kumaran2011-08-021-1/+1
| | | | Patch by Sandro Tosi.
* Add a link target for argparse.Namespace (#8982)Éric Araujo2011-07-291-7/+10
|
* Fix some more markup glitches in argparse doc.Ezio Melotti2011-04-211-98/+110
|
* The \ is not supported in Sphinx 0.6.Ezio Melotti2011-04-211-6/+2
|
* #11905: fix missing full stop in argparse doc. Noticed by Vladimir Rutsky.Ezio Melotti2011-04-211-1/+1
|
* #11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.Ezio Melotti2011-04-211-4/+4
|
* #11902: Fix typo in argparse doc. Noticed by Vladimir Rutsky.Ezio Melotti2011-04-211-1/+1
|
* Add the :mod: role where it was missing.Ezio Melotti2011-04-211-11/+11
|
* #11885: capitalize Python.Ezio Melotti2011-04-211-2/+2
|
* Fix a few hyphens in argparse.rst.Ezio Melotti2011-04-161-21/+21
|
* Issue #9343: Document that argparse parent parsers must be configured before ↵Steven Bethard2011-03-261-0/+5
| | | | their children. (Merge from 3.2.)
* Issue #8982: Improve the documentation for the argparse Namespace object. ↵Steven Bethard2011-03-261-5/+16
| | | | (Merge from 3.2.)
* Merged revisions ↵R. David Murray2011-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86542,87136,87216,87221,87228,87256,87337-87338,87372,87516,87571,88164 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86542 | r.david.murray | 2010-11-19 22:48:58 -0500 (Fri, 19 Nov 2010) | 2 lines Make test class name unique so that both test classes run. ........ r87136 | r.david.murray | 2010-12-08 17:53:00 -0500 (Wed, 08 Dec 2010) | 6 lines Have script_helper._assert_python strip refcount strings from stderr. This makes the output of the function and those that depend on it independent of whether or not they are being run under a debug build. ........ r87216 | r.david.murray | 2010-12-13 17:50:30 -0500 (Mon, 13 Dec 2010) | 2 lines #10698: fix typo in example. ........ r87221 | r.david.murray | 2010-12-13 19:55:46 -0500 (Mon, 13 Dec 2010) | 4 lines #10699: fix docstring for tzset: it does not take a parameter Thanks to Garrett Cooper for the fix. ........ r87228 | r.david.murray | 2010-12-13 21:25:43 -0500 (Mon, 13 Dec 2010) | 2 lines Turn on regrtest -W (rerun immediately) option for Windows, too. ........ r87256 | r.david.murray | 2010-12-14 21:19:14 -0500 (Tue, 14 Dec 2010) | 2 lines #10705: document what the values of debuglevel are and mean. ........ r87337 | r.david.murray | 2010-12-17 11:11:40 -0500 (Fri, 17 Dec 2010) | 2 lines #10559: provide instructions for accessing sys.argv when first mentioned. ........ r87338 | r.david.murray | 2010-12-17 11:29:07 -0500 (Fri, 17 Dec 2010) | 2 lines #10454: clarify the compileall docs and help messages. [changes to compileall.py were not backported, only the doc changes] ........ r87372 | r.david.murray | 2010-12-18 11:39:06 -0500 (Sat, 18 Dec 2010) | 2 lines #10728: the default for printing help is sys.stdout, not stderr. ........ r87516 | r.david.murray | 2010-12-27 15:09:32 -0500 (Mon, 27 Dec 2010) | 5 lines #7056: runtest and runtest_inner don't use testdir, so drop it from their sigs I've only tested regular runs and -j runs. If I've broken anything else I'm sure I'll hear about it sooner or later. ........ r87571 | r.david.murray | 2010-12-29 14:06:48 -0500 (Wed, 29 Dec 2010) | 2 lines Fix same typo in docs. ........ r88164 | r.david.murray | 2011-01-24 14:34:58 -0500 (Mon, 24 Jan 2011) | 12 lines #10960: fix 'stat' links, link to lstat from stat, general tidy of stat doc. Original patch by Michal Nowikowski, with some additions and wording fixes by me. I changed the wording from 'Performs a stat system call' to 'Performs the equivalent of a stat system call', since on Windows there are no stat/lstat system calls involved. I also extended Michal's breakout of the attributes into a list to the other paragraphs, and rearranged the order of the paragraphs in the 'stat' docs to make it flow better and put it in what I think is a more logical/useful order. ........
* Merged revisions 87890 via svnmerge fromGeorg Brandl2011-01-091-7/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87890 | georg.brandl | 2011-01-09 10:04:08 +0100 (So, 09 Jan 2011) | 1 line Wrap some long examples and signatures. ........
* Merged revisions ↵Georg Brandl2010-11-261-22/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85617-85622,85624,85626-85627,85629,85631,85635-85636,85638-85639,85641-85642 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85617 | georg.brandl | 2010-10-17 12:09:06 +0200 (So, 17 Okt 2010) | 1 line #5212: md5 weaknesses do not affect hmac, so remove the note about that. ........ r85618 | georg.brandl | 2010-10-17 12:14:38 +0200 (So, 17 Okt 2010) | 1 line #9086: correct wrong terminology about linking with pythonXY.dll. ........ r85619 | georg.brandl | 2010-10-17 12:15:50 +0200 (So, 17 Okt 2010) | 1 line Make file names consistent. ........ r85620 | georg.brandl | 2010-10-17 12:22:28 +0200 (So, 17 Okt 2010) | 1 line Remove second parser module example; it referred to non-readily-available example files, and this kind of discovery is much better done with the AST nowadays anyway. ........ r85621 | georg.brandl | 2010-10-17 12:24:54 +0200 (So, 17 Okt 2010) | 1 line #9105: move pickle warning to a bit more prominent location. ........ r85622 | georg.brandl | 2010-10-17 12:28:04 +0200 (So, 17 Okt 2010) | 1 line #9112: document error() and exit() methods of ArgumentParser. ........ r85624 | georg.brandl | 2010-10-17 12:34:28 +0200 (So, 17 Okt 2010) | 1 line Some markup and style fixes in argparse docs. ........ r85626 | georg.brandl | 2010-10-17 12:38:20 +0200 (So, 17 Okt 2010) | 1 line #9117: fix syntax for class definition. ........ r85627 | georg.brandl | 2010-10-17 12:44:11 +0200 (So, 17 Okt 2010) | 1 line #9138: reword introduction to classes in Python. ........ r85629 | georg.brandl | 2010-10-17 12:51:45 +0200 (So, 17 Okt 2010) | 1 line #5962: clarify sys.exit() vs. threads. ........ r85631 | georg.brandl | 2010-10-17 12:53:54 +0200 (So, 17 Okt 2010) | 1 line Fix capitalization. ........ r85635 | georg.brandl | 2010-10-17 13:03:22 +0200 (So, 17 Okt 2010) | 1 line #5121: fix claims about default values leading to segfaults. ........ r85636 | georg.brandl | 2010-10-17 13:06:14 +0200 (So, 17 Okt 2010) | 1 line #9237: document sys.call_tracing(). ........ r85638 | georg.brandl | 2010-10-17 13:13:37 +0200 (So, 17 Okt 2010) | 1 line Port changes to pickle docs apparently lost in py3k. ........ r85639 | georg.brandl | 2010-10-17 13:23:56 +0200 (So, 17 Okt 2010) | 1 line Make twisted example a bit more logical. ........ r85641 | georg.brandl | 2010-10-17 13:29:07 +0200 (So, 17 Okt 2010) | 1 line Fix documentation of dis.opmap direction. ........ r85642 | georg.brandl | 2010-10-17 13:36:28 +0200 (So, 17 Okt 2010) | 1 line #9730: fix example. ........
* Merged revisions 85274 via svnmerge fromGeorg Brandl2010-10-061-7/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85274 | georg.brandl | 2010-10-06 12:26:05 +0200 (Mi, 06 Okt 2010) | 1 line Fix errors found by "make suspicious". ........
* Merged revisions 83675 via svnmerge fromR. David Murray2010-08-031-3/+18
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83675 | r.david.murray | 2010-08-03 13:56:09 -0400 (Tue, 03 Aug 2010) | 12 lines #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. ........
* Merged revisions 83160-83161,83166,83168-83169,83171 via svnmerge fromGeorg Brandl2010-08-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83160 | georg.brandl | 2010-07-26 10:51:42 +0200 (Mo, 26 Jul 2010) | 1 line #9381: fix markup. ........ r83161 | georg.brandl | 2010-07-26 11:33:12 +0200 (Mo, 26 Jul 2010) | 1 line Add Brian Quinlan. ........ r83166 | georg.brandl | 2010-07-26 17:11:49 +0200 (Mo, 26 Jul 2010) | 1 line Fix grammar. ........ r83168 | georg.brandl | 2010-07-26 19:00:20 +0200 (Mo, 26 Jul 2010) | 1 line Fix indentation in example. ........ r83169 | georg.brandl | 2010-07-26 19:09:32 +0200 (Mo, 26 Jul 2010) | 1 line Add Reid. ........ r83171 | georg.brandl | 2010-07-26 23:12:13 +0200 (Mo, 26 Jul 2010) | 1 line Clarify. ........
* Add missing target.Georg Brandl2010-07-031-0/+2
|
* argparse documentation updates (including updates to optparse and getopt ↵Steven Bethard2010-05-241-2/+5
| | | | documentation that were promised in the PEP)
* Fix typo in argparse doc.Ezio Melotti2010-05-191-1/+1
|
* #8528: fix typo.Georg Brandl2010-04-251-1/+1
|
* #5341: more built-in vs builtin fixes.Georg Brandl2010-03-071-1/+1
|
* rephraseBenjamin Peterson2010-03-031-1/+1
|
* fix Sphinx warningsBenjamin Peterson2010-03-031-3/+4
|