-
Notifications
You must be signed in to change notification settings - Fork 192
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
OS 3.7 CLI regression for openstudio foo.rb --help
#5062
Labels
Comments
shorowit
added
the
Triage
Issue needs to be assessed and labeled, further information on reported might be needed
label
Dec 11, 2023
After discussing with @jmarrec, he's going to see if we can allow |
jmarrec
added
component - CLI
and removed
Triage
Issue needs to be assessed and labeled, further information on reported might be needed
labels
Dec 19, 2023
jmarrec
added a commit
that referenced
this issue
Dec 20, 2023
``` 3730 - OpenStudioCLI.execute_ruby_script.forward_flags.forward_help (Failed) 3731 - OpenStudioCLI.execute_python_script.forward_flags.forward_help (Failed) ```
jmarrec
added a commit
that referenced
this issue
Dec 20, 2023
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 ```
19 tasks
jmarrec
added a commit
that referenced
this issue
Jan 2, 2024
Fix #5062 - Properly forward the --help flag to ruby/python scripts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue overview
As tested with OpenStudio-HPXML, the
--help
argument is not correctly passed to the ruby script that is being executed.Current Behavior
With OpenStudio 3.7, the CLI itself processes the
--help
argument:Expected Behavior
I'd expect it to work the same way it did in OpenStudio 3.6 where our ruby script receives the
--help
argument.Possible Solution
I would think that any argument after foo.rb should be forwarded to, and processed by, the ruby script.
Details
Environment
Some additional details about your environment for this issue (if relevant):
The text was updated successfully, but these errors were encountered: