aboutsummaryrefslogtreecommitdiff
path: root/src/args.nim
diff options
context:
space:
mode:
authorzqqw2020-07-19 14:44:34 +0000
committerzqqw2020-07-19 14:44:34 +0000
commitb2321b0ded6f4a9803daf9dbcbd88d56321a9305 (patch)
tree3a2768d9da3cc4349628974c5dd8cd3316656789 /src/args.nim
parentd2030e0bf79d8a2252ae4750dbb0086bd06b72cb (diff)
Fix map error & some warnings
Diffstat (limited to 'src/args.nim')
-rw-r--r--src/args.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.nim b/src/args.nim
index 9aca7aa..6da84fd 100644
--- a/src/args.nim
+++ b/src/args.nim
@@ -132,7 +132,7 @@ proc splitArgs*(params: seq[string],
else:
input
- let cycle: ParseCycle = (params.map(some) & none(string))
+ let cycle: ParseCycle = (params.mapIt(some(it)) & none(string))
.foldl(buildArgs(a, b), (newSeq[ParseArgument](), false, false))
if cycle.stdinConsumed: