Bugfix for queryParamsToCliArgs.
This commit is contained in:
parent
e9351fbd9d
commit
cb6a3e4312
@ -199,8 +199,8 @@ proc queryParamsToCliArgs*(queryParams: Table[string, string]): seq[string] =
|
|||||||
if k.startsWith("arg"): result.add(v)
|
if k.startsWith("arg"): result.add(v)
|
||||||
|
|
||||||
else :
|
else :
|
||||||
result[1].add("--" & k)
|
result.add("--" & k)
|
||||||
if v != "true": result[1].add(v) # support things like ?verbose=true -> cmd --verbose
|
if v != "true": result.add(v) # support things like ?verbose=true -> cmd --verbose
|
||||||
|
|
||||||
proc queryParamsToCliArgs*(queryParams: StringTableRef): seq[string] =
|
proc queryParamsToCliArgs*(queryParams: StringTableRef): seq[string] =
|
||||||
result = @[]
|
result = @[]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Helper functions for writing command line interfaces."
|
description = "Helper functions for writing command line interfaces."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user