summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-08-24 20:49:49 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-01 17:08:14 (GMT)
commitd3e8eb504137dde90a73f1b46f97f889af46db18 (patch)
treecae1d614efc1acbe7a0efc284d6e1c7fadcf8cc6 /Source/cmakemain.cxx
parentf332e14ff2035e33bced0915373296a1f4cf0876 (diff)
downloadCMake-d3e8eb504137dde90a73f1b46f97f889af46db18.zip
CMake-d3e8eb504137dde90a73f1b46f97f889af46db18.tar.gz
CMake-d3e8eb504137dde90a73f1b46f97f889af46db18.tar.bz2
Add flags to detect unused variables
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index ac2a338..235aaf5 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -123,6 +123,10 @@ static const char * cmDocumentationOptions[][3] =
{"--strict-mode", "Put cmake in strict mode.",
"In strict mode cmake will print a warning when an uninitialized variable "
"is used."},
+ {"--find-unused", "Find unused variables.",
+ "Find variables that are declared on the command line, but not used."},
+ {"--find-unused-all", "Find all unused variables.",
+ "Find variables that are declared, but not used."},
{"--help-command cmd [file]", "Print help for a single command and exit.",
"Full documentation specific to the given command is displayed. "
"If a file is specified, the documentation is written into and the output "