Script mode description does not mention CMAKE_ARGVx variables
The description of cmake -P script mode (https://cmake.org/cmake/help/latest/manual/cmake.1.html#run-a-script) should mention that there is a way to get additional command line arguments by accessing CMAKE_VARG0
, CMAKE_VARG1
, ... variables.