在命令行 Java 应用程序中,您可以通过参数获取args
参数:
public static void main(String[] args) {
我怎样才能在锡兰做类似的事情?我尝试复制 Java 样式:
shared void run(String[] args) {
但出现错误,因为这是不允许的:
ceylon run: Cannot run toplevel method 'test.project.run':
it should have no parameters or they should all have default values.
我一直在阅读 ceylon-lang.org 之旅,但我没有找到答案。