Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
37.3k
Star
77.5k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
argparse.py
on
3.5
User selector
All users
Datepicker
All time
Commit history
Commits on Jan 22, 2017
Issue #29290: argparse help messages won't wrap at non-breaking spaces.
zhangyangyu
committed
7fe28ad
View commit details
Copy full SHA for 7fe28ad
View code at this point
Browse repository at this point
Commits on Feb 13, 2015
Issue #14910: Add allow_abbrev parameter to argparse.ArgumentParser.
Show description for 8089cd6
berkerpeksag
committed
8089cd6
View commit details
Copy full SHA for 8089cd6
View code at this point
Browse repository at this point
Commits on Jan 31, 2015
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
Show description for 08448a1
serhiy-storchaka
committed
08448a1
View commit details
Copy full SHA for 08448a1
View code at this point
Browse repository at this point
Commits on Oct 20, 2014
Closes #22675: fix typo.
birkenfeld
committed
2514f52
View commit details
Copy full SHA for 2514f52
View code at this point
Browse repository at this point
Commits on Oct 17, 2014
#9351: set_defaults on subparser is no longer ignored if set on parent.
Show description for 7570cbd
bitdancer
committed
7570cbd
View commit details
Copy full SHA for 7570cbd
View code at this point
Browse repository at this point
Commits on May 26, 2014
Issue #21481: Teach argparse equality tests to return NotImplemented when comparing to unknown types.
rhettinger
committed
dea46ec
View commit details
Copy full SHA for dea46ec
View code at this point
Browse repository at this point
Commits on Jan 9, 2014
Issue #13107: argparse and optparse no longer raises an exception when output
Show description for 123e6d5
serhiy-storchaka
committed
123e6d5
View commit details
Copy full SHA for 123e6d5
View code at this point
Browse repository at this point
Issue #13107: argparse and optparse no longer raises an exception when output
Show description for f451112
serhiy-storchaka
committed
f451112
View commit details
Copy full SHA for f451112
View code at this point
Browse repository at this point
Commits on Sep 6, 2013
Issue #18920: argparse's default version action (for -v, --version) should
Show description for cdac551
eliben
committed
cdac551
View commit details
Copy full SHA for cdac551
View code at this point
Browse repository at this point
Commits on Mar 11, 2013
Issue #17047: remove doubled words added in 3.4,
Show description for 8e7586b
terryjreedy
committed
8e7586b
View commit details
Copy full SHA for 8e7586b
View code at this point
Browse repository at this point
Commits on Feb 12, 2013
modernize some modules' code by using with statement around open()
giampaolo
committed
2f50aaf
View commit details
Copy full SHA for 2f50aaf
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Replace IOError with OSError (#16715)
asvetlov
committed
f7a17b4
View commit details
Copy full SHA for f7a17b4
View code at this point
Browse repository at this point
Commits on Dec 15, 2012
#11175: argparse.FileType now accepts encoding and errors arguments.
Show description for 74d6c25
akheron
committed
74d6c25
View commit details
Copy full SHA for 74d6c25
View code at this point
Browse repository at this point
Commits on Oct 1, 2012
utilize yield from
pjenvey
committed
4993cc0
View commit details
Copy full SHA for 4993cc0
View code at this point
Browse repository at this point
Commits on Sep 12, 2012
Merge 3.2 fix updates and tests for issue #15906.
warsaw
committed
d89774e
View commit details
Copy full SHA for d89774e
View code at this point
Browse repository at this point
Update merge from 2.7: s/basetring/str
warsaw
committed
2dceb35
View commit details
Copy full SHA for 2dceb35
View code at this point
Browse repository at this point
A follow up for issue #15906: change the test for calling the type conversion
Show description for eaae1b7
warsaw
committed
eaae1b7
View commit details
Copy full SHA for eaae1b7
View code at this point
Browse repository at this point
- Issue #15906: Fix a regression in argparse caused by the preceding change,
Show description for 0ae066b
warsaw
committed
0ae066b
View commit details
Copy full SHA for 0ae066b
View code at this point
Browse repository at this point
- Issue #15906: Fix a regression in argparse caused by the preceding change,
Show description for 4b2f9e9
warsaw
committed
4b2f9e9
View commit details
Copy full SHA for 4b2f9e9
View code at this point
Browse repository at this point
Commits on Sep 8, 2012
merge #15847: allow args to be a tuple in parse_args
Show description for 63755f3
bitdancer
committed
63755f3
View commit details
Copy full SHA for 63755f3
View code at this point
Browse repository at this point
#15847: allow args to be a tuple in parse_args
Show description for b522828
bitdancer
committed
b522828
View commit details
Copy full SHA for b522828
View code at this point
Browse repository at this point
Commits on Sep 1, 2012
Merge #12776,#11839: call argparse type function only once.
Show description for 64b0ef1
bitdancer
committed
64b0ef1
View commit details
Copy full SHA for 64b0ef1
View code at this point
Browse repository at this point
#12776,#11839: call argparse type function only once.
Show description for 6fb8fb1
bitdancer
committed
6fb8fb1
View commit details
Copy full SHA for 6fb8fb1
View code at this point
Browse repository at this point
Commits on Jul 22, 2012
Merge #13922: argparse no longer incorrectly strips '--' after the first one.
Show description for 45ccf03
bitdancer
committed
45ccf03
View commit details
Copy full SHA for 45ccf03
View code at this point
Browse repository at this point
#13922: argparse no longer incorrectly strips '--' after the first one.
Show description for 00528e8
bitdancer
committed
00528e8
View commit details
Copy full SHA for 00528e8
View code at this point
Browse repository at this point
Merge #12353: argparse now correctly handles null argument values.
Show description for d4703d1
bitdancer
committed
d4703d1
View commit details
Copy full SHA for d4703d1
View code at this point
Browse repository at this point
#12353: argparse now correctly handles null argument values.
Show description for b94082a
bitdancer
committed
b94082a
View commit details
Copy full SHA for b94082a
View code at this point
Browse repository at this point
Commits on Jul 21, 2012
Merge #14391: clarify docstring discussion of Action's 'type' argument's value.
bitdancer
committed
af418b2
View commit details
Copy full SHA for af418b2
View code at this point
Browse repository at this point
#14391: clarify docstring discussion of Action's 'type' argument's value.
bitdancer
committed
15cd9a0
View commit details
Copy full SHA for 15cd9a0
View code at this point
Browse repository at this point
Commits on Jul 7, 2012
Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser.
florentx
committed
af1adbe
View commit details
Copy full SHA for af1adbe
View code at this point
Browse repository at this point
Commits on Oct 28, 2011
Merge 3.2
florentx
committed
aabbda5
View commit details
Copy full SHA for aabbda5
View code at this point
Browse repository at this point
Closes #13258: Use callable() built-in in the standard library.
florentx
committed
5d1155c
View commit details
Copy full SHA for 5d1155c
View code at this point
Browse repository at this point
Commits on Sep 28, 2011
#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).
ezio-melotti
committed
d8b509b
View commit details
Copy full SHA for d8b509b
View code at this point
Browse repository at this point
Commits on Jun 9, 2011
#10424: argument names are now included in the missing argument message
Show description for f97c59a
bitdancer
committed
f97c59a
View commit details
Copy full SHA for f97c59a
View code at this point
Browse repository at this point
Commits on Apr 4, 2011
Issue #9347: Fix formatting for tuples in argparse type= error messages.
bethard
committed
7c8ea37
View commit details
Copy full SHA for 7c8ea37
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.