Skip to content

Add assertion that DeprecationEntry flag do not have dashes#16475

Merged
sholderbach merged 2 commits intonushell:mainfrom
132ikl:deprecation-assert
Aug 19, 2025
Merged

Add assertion that DeprecationEntry flag do not have dashes#16475
sholderbach merged 2 commits intonushell:mainfrom
132ikl:deprecation-assert

Conversation

@132ikl
Copy link
Copy Markdown
Member

@132ikl 132ikl commented Aug 19, 2025

Added a debug_assert when using DeprecationType::Flag to ensure that the dashes aren't included as part of the flag name. This will hopefully catch something like the issue discovered in #16473 from occurring.

Release notes summary - What our users need to know

N/A

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
@sholderbach sholderbach merged commit dd664e3 into nushell:main Aug 19, 2025
16 checks passed
@github-actions github-actions bot added this to the v0.107.0 milestone Aug 19, 2025
@WindSoilder WindSoilder added notes:mention Include the release notes summary in the "Hall of Fame" section notes:ready The "Release notes summary" section of this PR is ready to be included in our release notes. labels Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:mention Include the release notes summary in the "Hall of Fame" section notes:ready The "Release notes summary" section of this PR is ready to be included in our release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants