Command Line Arguments

Julia programs can be invoked from the command line like this:


            $ julia script.jl arg1 arg2...
            

The program name and the arguments are available in built-in expressions:


            println(PROGRAM_FILE)
            for x in ARGS
                println(x)
            end