[REBOL] Re: Command line passing values
From: antonr:iinet:au at: 26-Apr-2003 15:05
Open rebol console and type USAGE:
>> usage
The command line usage is:
REBOL <options> <script> <arguments>
All fields are optional. Supported options are:
--cgi (-c) Check for CGI input
--do expr Evaluate expression
--link url Connect to Link
--help (-?) Display this usage information
--nowindow (-w) Do not op......
You could either pass it in the --do option expression,
or in the arguments folowing the script name.
If you use <arguments>, then once inside your script,
access them with system/options/args and/or system/script/args.
Here's a simple script that uses command line arguments:
http://www.lexicon.net/anton/rebol/util/remind.r
Anton Rolls.