Bugfix for new HTTP<->CLI functionality.
This commit is contained in:
parent
e0eb8fd4c2
commit
406ca98be4
@ -196,5 +196,5 @@ proc queryParamsToCliArgs*(queryParams: StringTableRef): 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Helper functions for writing command line interfaces."
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user