From 969af934258b37d76e975e26df5e4975dfabb787 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 3 Oct 2018 03:42:10 -0500 Subject: [PATCH] Bugfix for new HTTP<->CLI functionality. --- cliutils.nim | 4 ++-- cliutils.nimble | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cliutils.nim b/cliutils.nim index 55d385e..02e0c15 100644 --- a/cliutils.nim +++ b/cliutils.nim @@ -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 diff --git a/cliutils.nimble b/cliutils.nimble index 2bc240f..3167505 100644 --- a/cliutils.nimble +++ b/cliutils.nimble @@ -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"