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"],