correct echo utility etc.
This commit is contained in:
parent
2f6f90dce4
commit
5de50196ea
7 changed files with 19 additions and 10 deletions
4
echo.nim
4
echo.nim
|
|
@ -2,8 +2,8 @@ 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