8000 gh-109164: Replace `getopt` with `argparse` in pdb by gaogaotiantian · Pull Request #109165 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-109164: Replace getopt with argparse in pdb #109165

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

Merged
merged 7 commits into from
Sep 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/pdb.py
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
gaogaotiantian and vstinner authored Sep 18, 2023
commit 2defa6be7baa1ed7bcfe951602cb557abb73acd2
4 changes: 2 additions & 2 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2089,8 +2089,8 @@ def main():
parser.add_argument('args', nargs="*")

if len(sys.argv) == 1:
# If no arguments were given (python -m pdb), print help message
# Without this check, argparse would only complain about missing required arguments
# If no arguments were given (python -m pdb), print the whole help message.
# Without this check, argparse would only complain about missing required arguments.
parser.print_help()
sys.exit(2)

Expand Down
0