2012-11-24 40 views

回答

3

运行这个功能,我认为它预计启动功能,具有元数一个,所以在这种情况下,它试图调用module:start(['5','10'])。所以改变你的启动函数来接受[arg1,arg2]中的2个参数列表。另外,请查看-run和-s标志上的文档。 -s将参数作为原子传递,而将其作为字符串传递给它们

-run Mod [Func [Arg1, Arg2, ...]](init flag) Makes init call the specified function. Func defaults to start. If no arguments are provided, the function is assumed to be of arity 0. Otherwise it is assumed to be of arity 1, taking the list [Arg1,Arg2,...] as argument. All arguments are passed as strings. See init(3).