[REBOL] Command Line Args Re:(5)

2000-03-13 Thread giesse
[EMAIL PROTECTED] wrote: > Yes please. In the case of 'simple things should be simple > to do': > > probe system/options/args > gets args > > probe system/options > shows the options object > > probe system > crashes rebol and requires me to use browse-system.r script??? This is not as st

[REBOL] Command Line Args Re:(8)

2000-03-12 Thread bpaddock
>> >> probe system > >Have you ever read the FAQ? If you did, then you did indeed miss it. It was long enough ago that I didn't make the connection to 'probe system' and 'print mold second system', especially when doing probe system/script/args is used in the example, and doing probe system/opti

[REBOL] Command Line Args Re:(7)

2000-03-12 Thread allenk
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 13, 2000 5:42 AM Subject: [REBOL] Command Line Args Re:(6) > >> probe system > >> crashes rebol and requires me to use browse-system.r script??? > >_never_

[REBOL] Command Line Args Re:(6)

2000-03-12 Thread bpaddock
>> probe system >> crashes rebol and requires me to use browse-system.r script??? >_never_ probe system/words ! Thats all well and good, but did I miss reading "don't do *this*" in the documentation? If it is not in the documentation how was I to know to _never_ do it? Seems quite a logical

[REBOL] Command Line Args Re:(5)

2000-03-12 Thread VoToNi
In einer eMail vom 12.03.00 15:33:15 (MEZ) Mitteleuropäische Zeit schreibt [EMAIL PROTECTED]: > Yes please. In the case of 'simple things should be simple > to do': > > probe system/options/args > gets args > > probe system/options > shows the options object > > probe system > c

[REBOL] Command Line Args Re:(6)

2000-03-12 Thread bpaddock
>I don't know why they changed it, but let's believe RT had reasons to do so, >while producing not so logical code, e.g.: I assume that they did have good reason to change. But nothing that can be typed at the system console should crash the system. Doing 'probe system' or any thing similar, s

[REBOL] Command Line Args Re:(6)

2000-03-12 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > > It would have been if I'd seen 'to-file' in the manual, I missed > it in there. http://www.rebol.com/users/valfile.html Time > to read it again I guess. > OK, do you know of 'what function? Just type "what" in your console. You can save your output in following w

[REBOL] Command Line Args Re:(5)

2000-03-12 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > >If you want to see the structure of system object, use Bo's > >%browse-system.r script If you don't have it, I can send you a copy > >... > > Yes please. In the case of 'simple things should be simple > to do': > > probe system/options/args > gets args > > prob

[REBOL] Command Line Args Re:(5)

2000-03-12 Thread bpaddock
>btw: %1 and %2 are substituted with real filenames at the command line, >right? Right. >> data: do read_file > >data: read to-file first args > >; above one line should be enough. It would have been if I'd seen 'to-file' in the manual, I missed it in there. http://www.rebol.com/users/valfile

[REBOL] Command Line Args Re:(4)

2000-03-12 Thread bpaddock
>I just returned back, so I don't know exactly what is the discussion all >about, but if you are looking for command line options, try: You just missed the fact that the rebol.exe has never read the rebol.doc file, specifically http://www.rebol.com/users/operunning.html , where it says use 'syst

[REBOL] Command Line Args Re:(4)

2000-03-12 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > In article <02f401bf8a53$e4b74d40$7ac036d2@pavilion>, you wrote: > >It may help to write a little test program, like this: > > Here is what I want to do: > >From a DOS batch file that looks like this > rebol -sqw trim.r %1 %2 As for .bat files, - they are synchronous

[REBOL] Command Line Args Re:(3)

2000-03-12 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > >system/script/args is only for arguments passed with DO/ARGS. > >system/options/args is for arguments passed from the command > >line. > > I was going by what was in section > http://www.rebol.com/users/operunning.html of Core User Guide > 2.2.0. > > system/options/

[REBOL] Command Line Args Re:(3)

2000-03-12 Thread bpaddock
In article <02f401bf8a53$e4b74d40$7ac036d2@pavilion>, you wrote: >It may help to write a little test program, like this: Here is what I want to do: >From a DOS batch file that looks like this rebol -sqw trim.r %1 %2 I want to run my script that trims the white space and detabs the input file. T

[REBOL] Command Line Args Re:(2)

2000-03-12 Thread bpaddock
>system/script/args is only for arguments passed with DO/ARGS. >system/options/args is for arguments passed from the command >line. I was going by what was in section http://www.rebol.com/users/operunning.html of Core User Guide 2.2.0. system/options/ does not appear any place in that document

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread Al . Bri
L PROTECTED]> Sent: Friday, 10 March 2000 6:26 PM Subject: [REBOL] Command Line Args Re: > > I tested it on my machine (running Win95) and it worked as advertised, i.e. > the arguments were available under system/script/args as a string. > > What did you expect would happen? Perh

[REBOL] Command Line Args Re:(3)

2000-03-09 Thread Al . Bri
Bo wrote: > >system/script/args is only for arguments passed with DO/ARGS. > >system/options/args is for arguments passed from the command line. Elan wrote: > Interesting enough, under Win95 system/script/args did contain the command line args! > Actually, they both worked! Bug in Windows versio

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread icimjs
Hi Bo, >system/script/args is only for arguments passed with DO/ARGS. >system/options/args is for arguments passed from the command >line. Interesting enough, under Win95 system/script/args did contain the command line args! Actually, they both worked! They both contained the same arguments.

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread icimjs
Hi Bo, >system/script/args is only for arguments passed with DO/ARGS. >system/options/args is for arguments passed from the command >line. Interesting enough, under Win95 system/script/args did contain the command line args! Actually, they both worked! ;- Elan >> [: - )]

[REBOL] Command Line Args Re:

2000-03-09 Thread icimjs
I tested it on my machine (running Win95) and it worked as advertised, i.e. the arguments were available under system/script/args as a string. What did you expect would happen? Perhaps the problem is with trim.r? At 09:04 PM 3/9/00 -0500, you wrote: >Can some one please send me a example of how

[REBOL] Command Line Args Re:

2000-03-09 Thread cplp
>Can some one please send me a example of how to deal with >command lind arguments please? And can someone tell me how I do command line arguments with the Macintosh version? Bruce.

[REBOL] Command Line Args Re:

2000-03-09 Thread bo
bpaddock, system/script/args is only for arguments passed with DO/ARGS. system/options/args is for arguments passed from the command line. Have fun! On 9-Mar-2000/21:04:02-5:00, [EMAIL PROTECTED] wrote: >Can some one please send me a example of how to deal with >command lind arguments please?