Add nl utility etc.

This commit is contained in:
joachimschmidt557 2019-03-28 14:45:43 +01:00
parent 5de50196ea
commit 1b57bc6fa3
4 changed files with 18 additions and 4 deletions

View file

@ -2,8 +2,10 @@ import cligen, sequtils
import common
proc main(strings:seq[string], newline=true) =
if newline: writeLine(stdout, strings.foldl(a & " " & b))
else: write(stdout, strings.foldl(a & " " & b))
if newline:
writeLine(stdout, strings.foldl(a & " " & b))
else:
write(stdout, strings.foldl(a & " " & b))
flushFile(stdout)
dispatch(main, version=("version", nimbaseVersion))