2012-11-24 80 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).