You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for bringing this to my attention. This is because there are two rounds of parsers. The first round is to find the build module use it to gather it's command line arguments. The second round of parsing is to parse for those command line arguments and then execute.
In the situation where the build module is provided, the first round of parsing consumes the --help argument, so when the second round of parsing occurs, the help flag does not exist and print help is not triggered.
PR #714 adds back in the "--help" flag to sys.argv if it was detected in the first round of parsing.
Contact Details
No response
Describe the Bug
With edk2-pytool-extensions 0.26.3 calling
python Platforms/QemuQ35Pkg/PlatformBuild.py
results in a build being started instead of printing help.What Python version are you using?
Python 3.12
Reproduction steps
python Platform/QemuQ35Pkg/PlatformBuild.py --help
Reverting commit dc5b3cd locally restores previous behavior.
Expected behavior
Print help text when
--help
is given.Execution Environment
No response
Pip packages
edk2-pytool-extensions 0.26.3
edk2-pytool-library 0.19.7
Additional context
No response
The text was updated successfully, but these errors were encountered: