我需要将两个参数传递给我的 Erlang 代码。它在 Erlang shell 中运行良好。
2> crop:fall_velocity(x,23).
21.23205124334434
但是我应该如何在没有 Erlang shell 的情况下运行 Erlang 代码。像普通的python,c程序一样。./program_name (不传递 $1 $2 参数)。
我正在尝试这个
erl -noshell -s crop fall_velocity(x,20) -s init stop
但它给出了意外的令牌错误。