Commit c7194fc7 authored by otica-resolver's avatar otica-resolver Committed by otica-integrator
Browse files

fix(gl-flow): shift once for valueless issue-list flags

Closes #9
Changelog: fixed
parent 919979c1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -162,8 +162,8 @@ cmd_issue_list() {
    while [ $# -gt 0 ]; do case "$1" in
        --labels)     q="$q&labels=$(urlencode "$2")"; shift 2;;
        --state)      q="${q/state=opened/state=$2}"; shift 2;;
        --unassigned) q="$q&assignee_id=None"; shift 2;;
        --mine)       q="$q&assignee_id=$(my_id)"; shift 2;;
        --unassigned) q="$q&assignee_id=None"; shift;;
        --mine)       q="$q&assignee_id=$(my_id)"; shift;;
        --untracked)  pre='.[] | select([.labels[] | select(startswith("status::"))] | length == 0)'; shift;;
        *) echo "unknown arg: $1" >&2; exit 2;;
    esac; done