diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-10-09 12:55:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-10 13:20:50 (GMT) |
commit | 7bbddeb78d46193eda9c2a948040e50012fbe33b (patch) | |
tree | f4255eca8b53009ac3414d02fabc1f9b673e08b5 /Source/cmakemain.cxx | |
parent | ead89868ba09bb331ae31c116f1cec4a44713b3b (diff) | |
download | CMake-7bbddeb78d46193eda9c2a948040e50012fbe33b.zip CMake-7bbddeb78d46193eda9c2a948040e50012fbe33b.tar.gz CMake-7bbddeb78d46193eda9c2a948040e50012fbe33b.tar.bz2 |
CLI: Rename --loglevel to --log-level for naming consistency
Other multi-word command line options use hyphens to separate
the words, so the --loglevel option introduced in CMake 3.15 was
inconsistent in this regard. Rename it to --log-level but still support
the original --loglevel name to preserve backward compatibility.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index cc00c81..6d3e6ee 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -70,8 +70,9 @@ const char* cmDocumentationOptions[][2] = { "Generate graphviz of dependencies, see " "CMakeGraphVizOptions.cmake for more." }, { "--system-information [file]", "Dump information about this system." }, - { "--loglevel=<ERROR|WARNING|NOTICE|STATUS|VERBOSE|DEBUG|TRACE>", - "Set the verbosity of messages from CMake files." }, + { "--log-level=<ERROR|WARNING|NOTICE|STATUS|VERBOSE|DEBUG|TRACE>", + "Set the verbosity of messages from CMake files. " + "--loglevel is also accepted for backward compatibility reasons." }, { "--debug-trycompile", "Do not delete the try_compile build tree. Only " "useful on one try_compile at a time." }, |