REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 20-Aug-2009 Edit History |
Scripts also have access to the options provided to the REBOL interpreter when it was started. These are found in the system/options object.
boot | The file path to the REBOL executable that you are currently running. |
home | The file path as determined by your operating system's environment. This is the path set in the HOME environment variable or system registry for systems that support it. This is the path used to find the rebol.r and user.r files. |
path | The file path to the current directory. |
script | The file name of the initial script provided when the interpreter was launched. |
args | The initial arguments provided to the interpreter on the command line. |
do-arg | The string provided as an argument to the --do option on the command line. |
The system/options object also contains additional options that were provided on the command line. Type
probe system/options
to examine the contents of the options object.
Examples:
print system/options/script probe system/options/args print read system/options/home/user.r
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |