Skip to content

invocable: Do not print help message on error. #1002

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 1 commit into from
Jul 2, 2025

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Jul 2, 2025

When an error occurs with loading the platform configuration file, an error message is printed, and then the help message. The help message is extremely large for our invocable, and tends to cause the terminal to scroll up, which ultimately causes the actual error message to be lost in the noise.

Instead, lets continue to print the error message, but only add a note that the user can use --help to print the help message if they wish.

The help message is extremely large for our invocables, and tends to
cause the terminal to scroll up, which ultimately causes the actual error
message to be lost in the noise.

Instead, lets continue to print the error message, but only add a note
that the user can use `--help` to print the help message if they wish.
@Javagedes Javagedes requested review from Flickdm, makubacki and apop5 July 2, 2025 18:56
Copy link

codecov bot commented Jul 2, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 79.63%. Comparing base (bf643b0) to head (c201584).
Report is 166 commits behind head on master.

Files with missing lines Patch % Lines
edk2toolext/edk2_invocable.py 0.00% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1002      +/-   ##
==========================================
+ Coverage   78.75%   79.63%   +0.88%     
==========================================
  Files          49       44       -5     
  Lines        4909     6247    +1338     
==========================================
+ Hits         3866     4975    +1109     
- Misses       1043     1272     +229     
Files with missing lines Coverage Δ
edk2toolext/edk2_invocable.py 76.64% <0.00%> (+1.23%) ⬆️

... and 48 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Javagedes Javagedes merged commit e6a2cb0 into tianocore:master Jul 2, 2025
26 of 27 checks passed
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.

3 participants