Skip to content

Restored code to set a parser's prog value in the with_argparser decorator. #1451

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 3 commits into from
Jun 26, 2025

Conversation

kmvanbrunt
Copy link
Member

Fixes #1414

Restored call to _set_parser_prog() in with_argparser() to preserve backward compatibility with cmd2 2.0 family.
@kmvanbrunt kmvanbrunt requested a review from tleonhardt June 26, 2025 05:42
@kmvanbrunt kmvanbrunt requested review from kotfu and anselor as code owners June 26, 2025 05:42
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.55%. Comparing base (0ff58ac) to head (a72c98d).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1451      +/-   ##
==========================================
- Coverage   98.57%   98.55%   -0.02%     
==========================================
  Files          20       20              
  Lines        5742     5742              
==========================================
- Hits         5660     5659       -1     
- Misses         82       83       +1     
Flag Coverage Δ
unittests 98.55% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tleonhardt
tleonhardt previously approved these changes Jun 26, 2025
@kmvanbrunt kmvanbrunt merged commit f0095e8 into master Jun 26, 2025
32 of 33 checks passed
@kmvanbrunt kmvanbrunt deleted the set_prog branch June 26, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@cmd2.with_argparser: parser's prog value
2 participants