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-cmd2
/
cmd2
Public
Notifications
You must be signed in to change notification settings
Fork
131
Star
686
Code
Issues
2
Pull requests
3
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Overhauled redirection and output capturing
- #1654
#1654
Merged
kmvanbrunt
merged 18 commits into
main
python-cmd2/cmd2:main
from
redirection_fixes
python-cmd2/cmd2:redirection_fixes
Copy head branch name to clipboard
Apr 29, 2026
Conversation
Commits
18
(18)
Checks
Files changed
Merged
Overhauled redirection and output capturing
#1654
kmvanbrunt
merged 18 commits into
main
python-cmd2/cmd2:main
from
redirection_fixes
python-cmd2/cmd2:redirection_fixes
Copy head branch name to clipboard
Commits
Commits on Apr 27, 2026
Added methods to Cmd2ArgumentParser to support redirection of help and usage output during the parsing phase.
kmvanbrunt
committed
0184f82
View commit details
Copy full SHA for 0184f82
Browse repository at this point
Commits on Apr 28, 2026
Made docstrings the single source of truth for verbose help descriptions.
kmvanbrunt
committed
a45a98d
View commit details
Copy full SHA for a45a98d
Browse repository at this point
Only capture command output written to self.stdout during pyscript execution.
kmvanbrunt
committed
03925e3
View commit details
Copy full SHA for 03925e3
Browse repository at this point
No longer capturing sys.stdout when redirecting output.
kmvanbrunt
committed
cc9b14f
View commit details
Copy full SHA for cc9b14f
Browse repository at this point
Made py_print's signature match print's
kmvanbrunt
committed
0711762
View commit details
Copy full SHA for 0711762
Browse repository at this point
Updated comments.
kmvanbrunt
committed
8f78030
View commit details
Copy full SHA for 8f78030
Browse repository at this point
Added unit tests.
kmvanbrunt
committed
3af3599
View commit details
Copy full SHA for 3af3599
Browse repository at this point
Updated comment.
kmvanbrunt
committed
1f22dee
View commit details
Copy full SHA for 1f22dee
Browse repository at this point
Added HelpFormatterRenderable to simplify how we pass help formatter when rendering argparse help.
kmvanbrunt
committed
4f54ad6
View commit details
Copy full SHA for 4f54ad6
Browse repository at this point
Added ability to set the file stream for all argparse output.
kmvanbrunt
committed
bd54607
View commit details
Copy full SHA for bd54607
Browse repository at this point
Commits on Apr 29, 2026
Added unit tests.
kmvanbrunt
committed
a61085c
View commit details
Copy full SHA for a61085c
Browse repository at this point
Updated change log.
kmvanbrunt
committed
b33c80d
View commit details
Copy full SHA for b33c80d
Browse repository at this point
Added test.
kmvanbrunt
committed
15d75d7
View commit details
Copy full SHA for 15d75d7
Browse repository at this point
Fixed test on Python 3.15.
kmvanbrunt
committed
6c3accd
View commit details
Copy full SHA for 6c3accd
Browse repository at this point
Removed parse_args wrappers and made context manager public.
kmvanbrunt
committed
697a335
View commit details
Copy full SHA for 697a335
Browse repository at this point
Updated comments.
kmvanbrunt
committed
a144feb
View commit details
Copy full SHA for a144feb
Browse repository at this point
Updated change log.
kmvanbrunt
committed
8870324
View commit details
Copy full SHA for 8870324
Browse repository at this point
Updated change log.
kmvanbrunt
committed
770b819
View commit details
Copy full SHA for 770b819
Browse repository at this point
You can’t perform that action at this time.