Fix bugs in fmt
@@ -240,7 +240,7 @@ const parseparams = {paramstr, optdesc
if ha == gotarg
std.slpush(&opts, (o, a))
else
- std.fatal("invalid arg for option {} ", a, o)
+ std.fatal("invalid arg {} for option {}", a, o)
;;
;;
if !found
@@ -436,6 +436,7 @@ const fmtslice = {sb, subap, params
| _: std.die("unreacahable")
;;
;;
+ std.slfree(opts)
if !joined
sbputs(sb, "[")
