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

edk2_invocable: print help message when build module provided #714

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Dec 18, 2023

Changes made in #639 to ensure the invocable displayed their command line arguments when a build module was not provided failed to test the critical scenario of ensuring the help message was still displayed when a build module was provided.

The help command line argument is consumed during the first pass of the command line argument parser, so when the build module is found, registered, and the parser is re-executed, the help argument is no longer present to trigger the help message display.

This commit fixes the issue by adding the "--help" command line argument to the arguments to be parsed if it was detected in the first parse.

closes #708

Changes made in tianocore#639 to ensure the invocable displayed their command
line arguments when a build module was not provided failed to test the
critical scenario of ensuring the help message was still displayed when
a build module was provided.

The help command line argument is consumed during the first pass of the
command line argument parser, so when the build module is found,
registered, and the parser is re-executed, the help argument is no
longer present to trigger the help message display.

This commit fixes the issue by adding the "--help" command line argument
to the arguments to be parsed if it was detected in the first parse.
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #714 (dfc3d61) into master (ce3cc52) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #714   +/-   ##
=======================================
  Coverage   78.73%   78.73%           
=======================================
  Files          49       49           
  Lines        4853     4853           
=======================================
  Hits         3821     3821           
  Misses       1032     1032           
Files Coverage Δ
edk2toolext/edk2_invocable.py 75.40% <100.00%> (ø)

@Javagedes Javagedes merged commit 32970d6 into tianocore:master Dec 18, 2023
25 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.

[Bug]: Calling platform build name --help starts a build
2 participants