argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

Open
#55,193 17 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start with argparse's add_mutually_exclusive_group entry point; the issue does not identify a source or test path. Review the linked args_in_multiple_mutually_exclusive_groups.patch, multigroup_1.patch, and multigroup_4.patch, then determine whether the intended behavior is that existing arguments can be passed in and their conflicts are registered, with tests covering that behavior.

Written by the indexing model from the issue text.

Description

stdlib type-feature
BPO 10984
Files
  • args_in_multiple_mutually_exclusive_groups.patch: Allow arguments to be passed into add_mutually_exclusive_group
  • multigroup_1.patch
  • multigroup_4.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 2011-01-22.23:01:55.200>
    labels = ['type-feature', 'library']
    title = 'argparse add_mutually_exclusive_group should accept existing arguments to register conflicts'
    updated_at = <Date 2014-06-03.05:44:01.029>
    user = 'https://bugs.python.org/gotgenes'
    

    bugs.python.org fields:

    activity = <Date 2014-06-03.05:44:01.029>
    actor = 'paul.j3'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2011-01-22.23:01:55.200>
    creator = 'gotgenes'
    dependencies = []
    files = ['30818', '30921', '30940']
    hgrepos = []
    issue_num = 10984
    keywords = ['patch']
    message_count = 13.0
    messages = ['126862', '126879', '192444', '192765', '192844', '192954', '193071', '193184', '196771', '197960', '212458', '212482', '219660']
    nosy_count = 5.0
    nosy_names = ['bethard', 'gotgenes', 'micktwomey', 'paul.j3', 'jamadagni']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10984'
    versions = ['Python 3.3']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.