Skip to content
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

fix: fixes a class cast bug and an error in the argument parsing algorithm #6375

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

Scoppio
Copy link
Collaborator

@Scoppio Scoppio commented Jan 8, 2025

fixes #6374
The changes I made to the nuke command originally made it impossible to use the custom nuke command, this change allows the argument parser to discover which is the correct set of arguments to use in case you are writting only positional arguments.

This also fixes an exception that was happening due to a bad cast.

@Scoppio Scoppio self-assigned this Jan 8, 2025
@Scoppio Scoppio added the Bug label Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.98%. Comparing base (1f39721) to head (5d6abc6).
Report is 61 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6375      +/-   ##
============================================
+ Coverage     28.65%   28.98%   +0.32%     
- Complexity    14088    14089       +1     
============================================
  Files          2760     2674      -86     
  Lines        272561   269483    -3078     
  Branches      48333    47962     -371     
============================================
+ Hits          78099    78101       +2     
+ Misses       190482   187403    -3079     
+ Partials       3980     3979       -1     

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

Copy link
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sleet01 Sleet01 merged commit 21384fe into MegaMek:master Jan 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.50.02/0.50.03-SNAPSHOT] /nuke command custom nukes aren't working
2 participants