diff --git a/kapsis.nimble b/kapsis.nimble index 094857c..358a2b6 100644 --- a/kapsis.nimble +++ b/kapsis.nimble @@ -13,7 +13,8 @@ requires "nim >= 2.0.0" requires "illwill" requires "checksums" requires "https://github.com/openpeeps/voodoo" -requires "pixie" +# pixie not used +# requires "pixie" requires "valido" requires "spinny#head" requires "nancy" @@ -23,4 +24,4 @@ task dev, "dev mode": exec "nim c --mm:arc --threads:on -o:./bin/kapsis src/kapsis.nim" task screen, "build a cli screen for test": - exec "nim c src/kapsis/interactive/screen.nim" \ No newline at end of file + exec "nim c src/kapsis/interactive/screen.nim" diff --git a/src/kapsis/app.nim b/src/kapsis/app.nim index d2d9b51..7820c14 100644 --- a/src/kapsis/app.nim +++ b/src/kapsis/app.nim @@ -336,16 +336,15 @@ template parseArgument(node: NimNode, isOpt: bool) {.dirty.} = cmdArgType = "cmdArgument" else: error("Invalid argument " & $(node[1].kind)) - add result, - newCall( - ident "addArg", - cmdx, - newLit $(argName), - ident cmdArgType, - ident argType, - ident "katArg", - newLit isOpt - ) + discard result.add(newCall( + ident "addArg", + cmdx, + newLit $(argName), + ident cmdArgType, + ident argType, + ident "katArg", + newLit isOpt + )) except: error("Unknown type " & node[0].strVal & ". Use one of: " & KapsisValueType.toSeq().join(", "), x[0])