From aa714f405fed886dcedf55c03f21c9b2ead8a6cf Mon Sep 17 00:00:00 2001 From: chaos Date: Sun, 10 Nov 2024 08:24:51 +0000 Subject: [PATCH] update --- tool/lib/argsLib.jq | 4 ++-- tool/main.jq | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tool/lib/argsLib.jq b/tool/lib/argsLib.jq index 037b986..bde15ad 100644 --- a/tool/lib/argsLib.jq +++ b/tool/lib/argsLib.jq @@ -3,11 +3,11 @@ def parseArgBool: if ($value | type) == "boolean" then $value elif - $value == "true" or $value == "on" or $value == "no" + $value == "true" or $value == "on" or $value == "yes" then true elif - $value == "false" or $value == "off" or $value == "yes" + $value == "false" or $value == "off" or $value == "no" then false else diff --git a/tool/main.jq b/tool/main.jq index 8a6cb1a..89fdecc 100644 --- a/tool/main.jq +++ b/tool/main.jq @@ -153,7 +153,7 @@ def main: ($parsedArgs | .nonArgs |= $parsedArgs.nonArgs[1:]) as $parsedArgs | if gojqExtendedLib::checkSupported then - if $parsedArgs.longArgs | has("export-file") then + if $parsedArgs.longArgs["export-file"] then $parsedArgs.longArgs["export-file"] else $ARGS.named["exportFileName"] @@ -164,8 +164,8 @@ def main: } else if $parsedArgs.longArgs | has("export-file") then - debug("--export-file was provided but this version of jq doesn't support reading files" + - "using EXPORT_FILE instead") + "--export-file was provided but this version of jq doesn't support reading files" + + "using EXPORT_FILE instead\n" | stderr end | { name: $ARGS.named["exportFileName"],