Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-94787: [doc] Add to argparse doc an example of a mutually-exclusive group ↵ | Scott Main | 2022-09-18 | 1 | -1/+20 |
| | | | | nested in an argument group (GH-94807) | ||||
* | gh-85308: argparse: Use filesystem encoding for arguments file (GH-93277) | Inada Naoki | 2022-06-23 | 1 | -1/+10 |
| | |||||
* | gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814) | 180909 | 2022-05-18 | 1 | -1/+1 |
| | |||||
* | bpo-9182: Add a section on specifying positional arguments (#31810) | slateny | 2022-05-13 | 1 | -2/+5 |
| | |||||
* | Fix typo in argparse docs. (GH-92691) | thueringa | 2022-05-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | # Fix typo in argparse docs. > Sometimes, when dealing with **a** particularly long argument list**s**, [...] Mixture between plural and singular forms is incorrect. Use singular consistently since typically only a single argument list is employed. Change to: > Sometimes, when dealing with a particularly long argument list, [...] No issue was opened, since this is a trivial change. Automerge-Triggered-By: GH:rhettinger | ||||
* | update argparse's doc of append action. (#92344) | Hai Shi | 2022-05-06 | 1 | -2/+4 |
| | |||||
* | Improving readability of argparse.rst (GH-91751) | Antonio Andrade | 2022-04-30 | 1 | -8/+8 |
| | | | | | | Fixed few typos and enhanced few paragraphs for your review and consideration. Trivial contribution towards continuous improvement, so no issue was raised. Automerge-Triggered-By: GH:rhettinger | ||||
* | Minor improvements to grammar and markup. (GH-91762) | Raymond Hettinger | 2022-04-20 | 1 | -12/+12 |
| | |||||
* | Clean-up the argparse docs quick links table (GH-91726) | Raymond Hettinger | 2022-04-20 | 1 | -55/+33 |
| | |||||
* | bpo-21150: Add quick link/summary table to the top of argparse documentation ↵ | Susan Su | 2022-04-18 | 1 | -0/+98 |
| | | | | | (GH-12005) No work has been done to move this forward. On the theory that perfect is the enemy of good, I'm going to push it and we can make minor edits as needed afterwards. | ||||
* | argparse docs: prog default is the basename of argv[0] (GH-30298) | Jade Lovelace | 2022-01-02 | 1 | -1/+2 |
| | |||||
* | bpo-22047: [argparse] deprecate nested argument groups and mutually ↵ | Irit Katriel | 2021-12-16 | 1 | -0/+12 |
| | | | | exclusive groups (GH-30098) | ||||
* | [doc] fix minor typo for argparse (GH-28451) | Louis Sautier | 2021-09-28 | 1 | -1/+1 |
| | | | "A JSONDecodeError" instead of "An JSONDecodeError". | ||||
* | bpo-37880: for argparse add_argument with action='store_const', const now ↵ | Jack DeVries | 2021-07-31 | 1 | -11/+16 |
| | | | | defaults to None. (GH-26707) | ||||
* | bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction ↵ | David Sanders | 2021-07-12 | 1 | -0/+2 |
| | | | | (GH-23026) | ||||
* | Use the zero argument form of super() in examples for Python3 docs. (GH-22314) | Andre Delfino | 2021-04-26 | 1 | -1/+1 |
| | |||||
* | Fix documentation typos of argparse exit_on_error (GH-22706) | Taneli Hukkinen | 2021-04-26 | 1 | -1/+1 |
| | |||||
* | bpo-9694: Fix misleading phrase "optional arguments" (GH-23858) | Raymond Hettinger | 2020-12-23 | 1 | -27/+27 |
| | |||||
* | bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) | Raymond Hettinger | 2020-12-22 | 1 | -0/+5 |
| | |||||
* | bpo-42572: Improve argparse docs for the type parameter. (GH-23849) | Raymond Hettinger | 2020-12-20 | 1 | -50/+57 |
| | |||||
* | bpo-38843: Document behavior of default when the attribute is already set ↵ | Raymond Hettinger | 2020-12-07 | 1 | -1/+9 |
| | | | | (GH-23653) | ||||
* | bpo-42501: Revise the usage note for Enums with the choices (GH-23563) | Raymond Hettinger | 2020-11-30 | 1 | -14/+3 |
| | |||||
* | Fix error in argparse documentation example (GH-17399) | SarahPythonista | 2020-08-28 | 1 | -2/+2 |
| | | | Automerge-Triggered-By: @rhettinger | ||||
* | bpo-41024: doc: Explicitly mention use of 'enum.Enum' as a valid container ↵ | Vincent Férotin | 2020-06-20 | 1 | -0/+14 |
| | | | | | | | | | for '… (GH-20964) …choices' argument of 'argparse.ArgumentParser.add_argument'. Here's a short first proposal of doc. enhancement addressing [bpo-41024](). Automerge-Triggered-By: @csabella | ||||
* | bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) | Albert | 2020-05-24 | 1 | -13/+0 |
| | | | | | Closes [Issue 17050]() by removing argparse.REMAINDER from the documentation, as discussed on the issue. Automerge-Triggered-By: @rhettinger | ||||
* | bpo-38678: Improve argparse example in tutorial (GH-17207) | Raymond Hettinger | 2019-11-18 | 1 | -1/+3 |
| | |||||
* | bpo-38438: Simplify argparse "star nargs" usage. (GH-17106) | Brandt Bucher | 2019-11-11 | 1 | -1/+1 |
| | |||||
* | bpo-38531: document extend action's added version (GH-16865) | Batuhan Taşkaya | 2019-10-20 | 1 | -0/+2 |
| | |||||
* | bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588) | Adam J. Stewart | 2019-10-07 | 1 | -1/+4 |
| | | | | | | | | | | The `required` argument to `argparse.add_subparsers` was added in #3027. This PR specifies the earliest version of Python where it is available. https://bugs.python.org/issue26510 Automerge-Triggered-By: @merwok | ||||
* | bpo-8538: Add support for boolean actions to argparse (GH-11478) | Rémi Lapeyre | 2019-09-13 | 1 | -3/+16 |
| | | | Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr> | ||||
* | bpo-37908: Add an example of ArgumentParser.exit() (GH-15455) | Hai Shi | 2019-09-12 | 1 | -1/+8 |
| | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> | ||||
* | bpo-9938: Add optional keyword argument exit_on_error to ↵ | Hai Shi | 2019-09-12 | 1 | -1/+29 |
| | | | | | | | | | | | | argparse.ArgumentParser (GH-15362) Co-Authored-by: Xuanji Li <xuanji@gmail.com> https://bugs.python.org/issue9938 Automerge-Triggered-By: @matrixise | ||||
* | bpo-16468: Clarify which objects can be passed to "choices" in argparse ↵ | Raymond Hettinger | 2019-08-29 | 1 | -3/+2 |
| | | | | (GH-15566) | ||||
* | bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) | Zac Hatfield-Dodds | 2019-07-14 | 1 | -0/+4 |
| | | | | | | | | | | | The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing. However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this. This was prompted by pytest-dev/pytest#5469, so a backport to at least 3.8 would be great :smile: And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967 | ||||
* | bpo-23378: Add an extend action to argparse (GH-13305) | Batuhan Taşkaya | 2019-05-21 | 1 | -0/+9 |
| | | | | | | Add an extend action to argparse https://bugs.python.org/issue23378 | ||||
* | bpo-35054: Add yet more index entries for symbols. (GH-10121) | Serhiy Storchaka | 2018-10-28 | 1 | -0/+6 |
| | |||||
* | Fix doc for `add_subparsers` arguments (GH-8884) | Anthony Sottile | 2018-08-24 | 1 | -1/+1 |
| | | | There was a missing comma. | ||||
* | bpo-33109: argparse subparsers are once again not required by default (GH-6919) | Ned Deily | 2018-05-24 | 1 | -1/+1 |
| | | | | | | | | | bpo-26510 in 3.7.0a2 changed the behavior of argparse to make subparsers required by default, returning to the behavior of 2.7 and 3.2. The behavior was changed in 3.3 to be no longer required. While it might make more sense to have the default to required, compatibility with 3.3 through 3.6 is probably less disruptive than trying to reintroduce compatibility with 2.7 at this point. This change restores the 3.6 behavior. | ||||
* | Fix error messages in argparse examples (GH-6435) | suic86 | 2018-04-11 | 1 | -2/+2 |
| | | | | The examples in argparse documentation use `error: too few arguments` error message which was removed in this commit f97c59a in 2011. | ||||
* | Fix typos '.::' should typically just be '::'. (GH-6165) | Julien Palard | 2018-03-28 | 1 | -1/+1 |
| | |||||
* | bpo-26510: make argparse subparsers required by default (#3027) | Anthony Sottile | 2017-09-20 | 1 | -2/+5 |
| | | | | | | This fixes a regression from Python 2. To get optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile. | ||||
* | bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. ↵ | Elena Oat | 2017-09-07 | 1 | -1/+3 |
| | | | | | | (#3272) Also provide a solution if the user wants to keep multiple blank lines. | ||||
* | bpo-14191 Add parse_intermixed_args. (#3319) | R. David Murray | 2017-09-07 | 1 | -3/+41 |
| | | | This adds support for parsing a command line where options and positionals are intermixed as is common in many unix commands. This is paul.j3's patch with a few tweaks. | ||||
* | Clarify nature of parse_args 'args' argument. (#3292) | R. David Murray | 2017-09-04 | 1 | -3/+15 |
| | | | | Patch by Paul.j3. Includes an unrelated but useful addition to the optparse porting section. | ||||
* | Fix grammar, typos and markup in documentation and code comments | Martin Panter | 2017-01-14 | 1 | -2/+2 |
| | | | | | | * Indent versionchanged at method level, not class level * Mark up ``--help`` to avoid generating an en dash * Use forward slash in Unix command line with a dollar sign ($) prompt | ||||
* | Issue #19795: Mark up None as literal text. | Serhiy Storchaka | 2016-10-19 | 1 | -4/+4 |
| | |||||
* | Issue #28455: Clarify example of overriding the convert_arg_line_to_args method | Berker Peksag | 2016-10-17 | 1 | -3/+4 |
| | | | | Patch by Mariatta Wijaya. | ||||
* | Issue #27993: Fix problems with plural objects in docs and comments | Martin Panter | 2016-09-07 | 1 | -2/+2 |
| | |||||
* | Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. | Martin Panter | 2016-07-26 | 1 | -5/+15 |
| | | | | Patch by Julien Palard. | ||||
* | Issue #22558: Add remaining doc links to source code for Python-coded modules. | Terry Jan Reedy | 2016-06-11 | 1 | -0/+1 |
| | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi. |