-
Notifications
You must be signed in to change notification settings - Fork 208
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 #5062 - Properly forward the --help flag to ruby/python scripts #5065
Conversation
``` 3730 - OpenStudioCLI.execute_ruby_script.forward_flags.forward_help (Failed) 3731 - OpenStudioCLI.execute_python_script.forward_flags.forward_help (Failed) ```
When script omitted, --help displays the C++ subcommand help ``` $os_build_rel/Products/openstudio execute_ruby_script --help Executes a ruby file Usage: /Users/julien/Software/Others/OS-build-release/Products/openstudio execute_ruby_script [OPTIONS] path [args...] Positionals: path RUBY_SCRIPT Path to Ruby file args ARG ... Extra Arguments forwarded to the Ruby script Options: -h,--help Print this help message and exit Any additional arguments passed after the Ruby file are forwarded ``` When --help is passed after the ruby script, the Ruby's script is displayed (if any): ``` $os_build_rel/Products/openstudio execute_ruby_script execute_ruby_script_optparse_path.rb --help Usage: execute_ruby_script_optparse_path.rb -x building.xml The Ruby help description. -x, --xml <FILE> HPXML file ```
CI Results for a52f8e0:
|
Looks like the mac-incremental didn't work properly. I cleaned up the disk and re-ran it. |
@wenyikuang I just killed that rerun, it has been stalled for 8 days. |
@shorowit When you get a chance (after the holiday season is totally fine - and happy holidays!), if you could test that this is properly solving your problem that'd be great, then we can merge. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested this and it worked as expected. Thanks for the quick fix, @jmarrec!
Pull request overview
openstudio foo.rb --help
#5062When script omitted, --help displays the C++ subcommand help
When --help is passed after the ruby script, the Ruby's script is displayed (if any):
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.