Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Argument passing

From: ingo:2b1 at: 11-Apr-2001 19:33

Hi Jeff, some addition on your explanation of arguments ... If Rebol is started without a script, it normally only accepts the rebol arguments, and these are not accessible for a script: rebol -q REBOL/Core 2.5.0.4.2 23-Mar-2001 Copyright 2000-2001 REBOL Technologies. All rights reserved.
>> probe system/options/args
none == none
>>
rebol help REBOL/Core 2.5.0.4.2 Copyright 1997-2001 REBOL Technologies ...
>> probe system/options/args
none == none
>>
But you can get arguments into your user.r, by using -- before your args: rebol -- -q REBOL/Core 2.5.0.4.2 Copyright 1997-2001 REBOL Technologies ...
>> probe system/options/args
["-q"] == ["-q"]
>>
I just thought someone might find this handy. kind regards, Ingo Once upon a time [jeff--rebol--net] spoketh thus: