mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 21:00:56 +00:00
improve behaviour of println builtin
This commit is contained in:
parent
3a43b56fcd
commit
c04c5629fd
@ -23,8 +23,10 @@ class RunCommand : CliktCommand(help = "Run Program", name = "run") {
|
|||||||
if (quiet) {
|
if (quiet) {
|
||||||
return@CallableFunction None
|
return@CallableFunction None
|
||||||
}
|
}
|
||||||
for (argument in arguments.values) {
|
when (arguments.values.count()) {
|
||||||
println(argument)
|
0 -> println()
|
||||||
|
1 -> println(arguments.values[0])
|
||||||
|
else -> println(arguments.values.joinToString(" "))
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user