You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just: let argparse own the options this script acts on
Hand-sorting every argument was justified while `--all-checks` was both a
flag and an assignment, which argparse cannot express. Naming the offer
separately removed that, and the loop was then keeping three silent
mistakes alive: `--codeql built` made `built` a test path, and a bare
`--codeql` or `--extra-check` was forwarded to `codeql test run` to fail
there instead of here.
argparse takes those three options; the shape test stays for the rest,
which belongs to `codeql test run` and is forwarded untouched. Errors are
routed back through `error` so they still arrive in a just banner.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments