Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpython quits when parsing empty arguments with argparse module #745

Open
Labels
Milestone
@bfrascher

Description

@bfrascher

I was testing around some things with theargparse module inbpython when suddenlybpython quit on me with error code 1. I tried to break the problem down and the code below seems to be the minimal reproducer:

$ bpythonbpython version 0.17.1 on top of Python 3.7.0 /usr/bin/python>>> import argparse>>> parser =argparse.ArgumentParser()>>> parser.add_argument('foo')_StoreAction(option_strings=[], dest='foo', nargs=None, const=None, default=None, type=None, choices=None, help=None, metavar=None)>>>parser.parse_args()usage: bpython [-h] foo>>>parser.parse_args()(2,)$echo$?1

The secondparser.parse_args() is not entered by me, but appears automatically on executing the firstparser.parse_args() line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp