From 438ea5f7b3e7094354cf1440ade2a65b389030c8 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 23 Mar 2020 08:18:08 -0500 Subject: [PATCH] Bugfix for queryParamsToCliArgs. --- cliutils.nim | 4 ++-- cliutils.nimble | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cliutils.nim b/cliutils.nim index 9c96713..9a60575 100644 --- a/cliutils.nim +++ b/cliutils.nim @@ -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 = @[] diff --git a/cliutils.nimble b/cliutils.nimble index 9426352..427960d 100644 --- a/cliutils.nimble +++ b/cliutils.nimble @@ -1,6 +1,6 @@ # Package -version = "0.6.3" +version = "0.6.4" author = "Jonathan Bernard" description = "Helper functions for writing command line interfaces." license = "MIT"