diff --git a/commands/get-github-release b/commands/get-github-release index ef263600a..8666b71a4 100755 --- a/commands/get-github-release +++ b/commands/get-github-release @@ -66,8 +66,9 @@ function get_github_release() ( '--latest-tag-name') action='latest-tag-name' ;; '--assets') action='assets' ;; '--api-url') action='api-url' ;; - '--no-jq') use_jq='no' ;; - '--jq') use_jq='yes' ;; + '--no-jq'* | '--jq'*) + use_jq="$(get-flag-value jq --missing="$use_jq" -- "$item" | echo-affirmative --stdin)" + ;; '--'*) help "An unrecognised flag was provided: $item" ;; *) if test -z "$slug"; then