Skip to content

document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse #53428

@grayhemp

Description

@grayhemp
mannequin
BPO 9182
Nosy @freddrake, @rhettinger, @ericvsmith, @merwok, @berkerpeksag, @shihai1991, @jacksonriley, @ananthan-123, @slateny
PRs
  • bpo-9182: Add a section on specifying positional arguments #31810
  • Files
  • issue9182.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2010-07-06.16:24:38.683>
    labels = ['easy', 'type-bug', '3.9', 'docs']
    title = "document \xe2\x80\x9c--\xe2\x80\x9d as a way to distinguish option w/ narg='+' from positional argument in argparse"
    updated_at = <Date 2022-03-11.05:58:21.838>
    user = 'https://bugs.python.org/grayhemp'

    bugs.python.org fields:

    activity = <Date 2022-03-11.05:58:21.838>
    actor = 'slateny'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2010-07-06.16:24:38.683>
    creator = 'gray_hemp'
    dependencies = []
    files = ['19732']
    hgrepos = []
    issue_num = 9182
    keywords = ['patch', 'easy']
    message_count = 21.0
    messages = ['109402', '109412', '109420', '109423', '109425', '109426', '109427', '109431', '121519', '121532', '121534', '121724', '121850', '121891', '121893', '121935', '121950', '166243', '355749', '362151', '362265']
    nosy_count = 14.0
    nosy_names = ['fdrake', 'rhettinger', 'bethard', 'eric.smith', 'eric.araujo', 'docs@python', 'gray_hemp', 'Kotan', 'berker.peksag', 'paul.j3', 'shihai1991', 'jacksonriley', 'Ananthakrishnan', 'slateny']
    pr_nums = ['31810']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9182'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifedocsDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions