Using --trace or --debug with the -E option (from a newbie)

Hi,

Specifying -trace or –debug before the -E option messes up the -E option. I can’t find this documented in the options page (https://cmake.org/cmake/help/v4.0/manual/cmake.1.html#run-a-command-line-tool)

This might be a bug but it might at least be nice to indicate in the documentation or maybe even cmake could flag this.

This was particularly confusing when I was trying to debug something that I was only trying to build which used cmake. I am brand new to cmake and I figured I’d add –debug to a command that was failing. My command was something like:

cmake -trace -E “abc.exe” -o xyz.txt

cmake complained:

CMake Error: Unknown argument -o

Thanks,
Albert

The synopsis show which command line flag results into which action.

Each action is described in its own chapter with all details.

The options of “Generate a Project Buildsystem” cannot be applied to the other actions, like “Run a Command-Line Tool“, they are not mentioned there.