Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argparse: -h listening required options under optional arguments #58026

Closed
mgodinho mannequin opened this issue Jan 18, 2012 · 1 comment
Closed

argparse: -h listening required options under optional arguments #58026

mgodinho mannequin opened this issue Jan 18, 2012 · 1 comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mgodinho
Copy link
Mannequin

mgodinho mannequin commented Jan 18, 2012

BPO 13818
Superseder
  • bpo-9694: argparse required arguments displayed under "optional arguments"
  • 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 = <Date 2012-07-21.22:06:01.418>
    created_at = <Date 2012-01-18.19:23:54.770>
    labels = ['type-bug', 'library']
    title = 'argparse: -h listening required options under optional arguments'
    updated_at = <Date 2012-07-21.22:06:01.417>
    user = 'https://bugs.python.org/mgodinho'

    bugs.python.org fields:

    activity = <Date 2012-07-21.22:06:01.417>
    actor = 'bethard'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-07-21.22:06:01.418>
    closer = 'bethard'
    components = ['Library (Lib)']
    creation = <Date 2012-01-18.19:23:54.770>
    creator = 'mgodinho'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 13818
    keywords = []
    message_count = 1.0
    messages = ['151562']
    nosy_count = 2.0
    nosy_names = ['bethard', 'mgodinho']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'test needed'
    status = 'closed'
    superseder = '9694'
    type = 'behavior'
    url = 'https://bugs.python.org/issue13818'
    versions = ['Python 2.7']

    @mgodinho
    Copy link
    Mannequin Author

    mgodinho mannequin commented Jan 18, 2012

    Adding a 'required optional argument' as with:

    app.add_argument('--dbsnp', required=True)
    

    will still result on having that argument listed under the optional when the app is called with the help option (-h)

    Please note that the usage line is rendered ok (no square brackets around the 'required optional argument').

    @mgodinho mgodinho mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jan 18, 2012
    @bethard bethard mannequin closed this as completed Jul 21, 2012
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants