Bugfix for queryParamsToCliArgs.
This commit is contained in:
@@ -199,8 +199,8 @@ proc queryParamsToCliArgs*(queryParams: Table[string, string]): seq[string] =
|
||||
if k.startsWith("arg"): result.add(v)
|
||||
|
||||
else :
|
||||
result[1].add("--" & k)
|
||||
if v != "true": result[1].add(v) # support things like ?verbose=true -> cmd --verbose
|
||||
result.add("--" & k)
|
||||
if v != "true": result.add(v) # support things like ?verbose=true -> cmd --verbose
|
||||
|
||||
proc queryParamsToCliArgs*(queryParams: StringTableRef): seq[string] =
|
||||
result = @[]
|
||||
|
||||
Reference in New Issue
Block a user