Improve CMake command line behavior when given invalid arguments
Currently when CMake is passed arguements such as --bad-flag
or --graphviz
( graphviz requires =
) instead of erroring out it presumes that this argument is the source directory even taking precedence over an explicit -S
argument.
My proposal is the following:
When cmake is provided any argument that starts with --
but doesn't match the current set of supported flags treat it as an error and output cmake --help
output.