Ruby Project Properties: Run Options
See Also
Use this dialog box to set Run options for a Ruby project. You open the dialog box by right-clicking the main project node for a Ruby project in the Projects window, choosing Properties, and then clicking the Run node in the Project Properties dialog box.
You can set the following options:
- Configuration. Specifies a name for the set of options you specify in this dialog box. If you want to use different configurations of settings with the project, such as different main scripts and arguments, you can give a configuration a name and use the drop-down list to quickly change configurations.
- Main Script. Sets the main script for your project, which is the script that the IDE runs when you run the project.
- Arguments. Passes arguments to the main script of your application by using the
ARGV
array.
- Working Directory. Sets the directory where your application is run.
- Ruby Options. Specifies command-line switches for the Ruby interpreter. For example:
-c
- check syntax only
-C
directory
- cd to directory, before executing your script
-l
- enable line ending processing
-n
- assume 'while gets(); ... end' loop around your script
-p
- assume loop like -n but print line also like sed
-w
- turn warnings on for your script
- Rake Arguments. Passes custom flags to Rake when run from the IDE.
- See Also
- Working With NetBeans Ruby
Legal Notices