tools: fix checkimports.py when passed arguments
Fix checkimports.py so that all passed arguments are checked instead of just the first one.
Opening as a draft to check that our actions/CI jobs fail properly now.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines