command-line args in erl

Wes James <>
Thu Apr 15 23:10:18 CEST 2010

I am running through the mandelbrot example from:

and it has:

main([WArg,HArg]) ->.....

so you can provide command-line args like main 200 200, but how do you
do provide command line args in erl?


spits out:

** exception error: bad argument
     in function  atom_to_list/1
        called as atom_to_list(200)
     in call from render:main/1

what should main(??) look like?



More information about the erlang-questions mailing list