This is deliberate, but I think the result is not very readable:
@@ -1,6 +1,6 @@
use std/log
-def main [interface_arg: string, action_arg?: string] {
+def main [interface_arg: string action_arg?: string] {
let action = $action_arg | default $interface_arg
let interface = match $interface_arg {
none => null
I don't mind this for long parameter lists that are spread on multiple lines, but for these kinds of mini-functions with self-explaining args in little scripts I would really like to keep my commas.
This is deliberate, but I think the result is not very readable:
I don't mind this for long parameter lists that are spread on multiple lines, but for these kinds of mini-functions with self-explaining args in little scripts I would really like to keep my commas.