Skip to content

Raise ValueError in attach_subcommand() when the subcommand already exists.#1645

Merged
kmvanbrunt merged 3 commits intomainfrom
handle_duplicate_subcommand
Apr 22, 2026
Merged

Raise ValueError in attach_subcommand() when the subcommand already exists.#1645
kmvanbrunt merged 3 commits intomainfrom
handle_duplicate_subcommand

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

No description provided.

@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner April 22, 2026 18:36
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (47c492b) to head (abdd76c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1645   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          21       21           
  Lines        4754     4758    +4     
=======================================
+ Hits         4731     4735    +4     
  Misses         23       23           
Flag Coverage Δ
unittests 99.51% <100.00%> (+<0.01%) ⬆️

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.

Comment thread tests/test_argparse_utils.py
Comment thread cmd2/argparse_utils.py Outdated
tleonhardt
tleonhardt previously approved these changes Apr 22, 2026
@kmvanbrunt kmvanbrunt merged commit 03db5e4 into main Apr 22, 2026
32 of 33 checks passed
@kmvanbrunt kmvanbrunt deleted the handle_duplicate_subcommand branch April 22, 2026 21:36
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.

2 participants