The yocto-check-layer argument parser has both optional parameters (--machine and --dependency) and mandatory positional arguments (layers) all using + for nargs, which means that parsing is non-deterministic and ambiguous: $ yocto-check-layer --dependency /home/ross/Yocto/meta-arm/meta-arm-toolchain --machines qemuarm64-secureboot /home/ross/Yocto/meta-arm/meta-arm yocto-check-layer: error: the following arguments are required: LAYER_DIR It thought I was passing two machines and no layer, when instead I was passing a machine and a layer. This can be easily solved by changing the positional layers to be --layers [LAYER DIR ...].
The workaround is to creatively order the arguments so the variables are not ambiguous, but this might not be always possible.
Moved en masse from 4.2 to 4.3 by Randy.
Add Mingli/Grace to CC since she might want to fix this small bug.