Add nl utility etc.
This commit is contained in:
parent
5de50196ea
commit
1b57bc6fa3
4 changed files with 18 additions and 4 deletions
6
echo.nim
6
echo.nim
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue