When I type in
$ julia myprog.jl foo bar baz
Where in my code can I go to access the strings \"foo\", \"bar\", \"baz\" ?
\"foo\", \"bar\", \"baz\"
A simpler example:
#printargs.jl println(ARGS[2]);
#printargs.jl
println(ARGS[2]);
Run it as
julia printargs.jl a b c d b
julia printargs.jl a b c d
b
Note that the array index starts from 1 and NOT 0. Thus ARGS[2] prints b and not c as in case of many other programming languages.