Pass variables at command line

Is it possible to pass variables to a julia script at command line?

Yes, they are stored in the variable ARGS:

If hello.jl contains

@show ARGS

then julia hello.jl 3 T
gives

ARGS = ["3", "T"]
3 Likes

Many thanks.