Problem with "-r" command line argument 
Author Message
 Problem with "-r" command line argument

Well, I'm having one more problem with RubyStudio. I implemented a drawer to
save arguments and they all work *except* for -r. If I put anything in the
-r textbox, Ruby says "0: No such file to load --  <fileName in -r box>

I put the following debug code in RubyStudio:

    count = [theArguments count];
    for (index = 0; index < count; index++)

    [myTask setArguments:theArguments];

And for a simple case  where I only have -w and - r turned on I get:
2002-02-26 10:39:21.214 RubyStudio[919] index: 0 string: -w
2002-02-26 10:39:21.215 RubyStudio[919] index: 1 string: -r osx/cocoa
2002-02-26 10:39:21.215 RubyStudio[919] index: 2 string: /tmp/Prog.rb

Which looks ok to me.

Other clues are:
Quoting doesn't seem to matter. -r works from the shell which eats the
quotes anyway.
ENV is different in RubyStudio than in the shell but I don't see any
important difference.
The other command line arguments that take a file path work. It's just -r
that's troublesome.
There is, nevertheless, a certain respect and a general duty of humanity
that ties us, not only to beasts that have life and sense, but even to
trees and plants. -Michel de Montaigne, essayist (1533-1592)

Sun, 15 Aug 2004 01:54:55 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Dos command lines and -c "text"

2. Problem with "null" commands

3. Problems with ModelSim and "report" command

4. Beginner's Tkinter Problem "-command"

5. Problems with "file system" command

6. Newbie problem concerning the "exec"-command

7. Problem with "scan" command in tcl

8. Problem with menu "-command" option

9. Questions/problems with Tcl "exec" command

10. tricky problem with "place" command

11. Problems with "exec" command

12. REXX: LINES() and "complete lines"


Powered by phpBB® Forum Software