From 51a799659d6456bcf83d461d8a27bdda42d88b22 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:03:14 +0800 Subject: [PATCH] explicit bool types to int types --- cligen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cligen.nim b/cligen.nim index d1c56936..2195b647 100644 --- a/cligen.nim +++ b/cligen.nim @@ -543,7 +543,7 @@ macro dispatchGen*(pro: typed{nkSym}, cmdName: string="", doc: string="", let hlp = helps.getOrDefault(pNm)[1] let isReq = if i in mandatory: true else: false result.add(quote do: - `apId`.parNm = `parNm`; `apId`.parSh = `sh`; `apId`.parReq = `isReq` + `apId`.parNm = `parNm`; `apId`.parSh = `sh`; `apId`.parReq = ord(`isReq`) `apId`.parRend = if `hky`.len>0: `hky` else:helpCase(`parNm`,clLongOpt) let descr = getDescription(`defVal`, `parNm`, `hlp`) if descr != `cf`.hTabSuppress: