Shouldn't `read(STDIN,arg1,arg2)` in the startup.jl work?

Devendra


On Sun, Feb 15, 2015 at 02:31:08PM -0500, Stefan Karpinski wrote:
I'm not sure that we support this at the moment. The part that's not
supported seems to be passing command-line arguments in interactive mode.

On Sat, Feb 14, 2015 at 8:11 PM, Josef Sachs <[email protected]> wrote:

I am trying to start julia
(1) in interactive mode, i.e. with the REPL,
(2) loading a script, and
(3) passing command line arguments

I can accomplish (1) and (2) with
julia -i -L startup.jl
but I can't manage to pass additional arguments without producing an error.

juser@juliabox:~$ julia -i -L startup.jl foo bar
ERROR: could not open file /home/juser/foo
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
juser@juliabox:~$ echo $?
1

Is there any way I can accomplish this?


--
Devendra Ghate

Reply via email to