diff options
author | Brad King <brad.king@kitware.com> | 2014-06-16 12:54:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-06-16 12:54:43 (GMT) |
commit | 94d1879ba049fbb52a168228218e479b281bce12 (patch) | |
tree | c7c00e1360d7de1d5ba1683474256d36fc3e0e11 /Source/cmakemain.cxx | |
parent | 8af01cd5e9b15668816b422e6a8db80d94df8bcd (diff) | |
parent | de7c2882ff053ebdb60c57caa4f0cef87161fede (diff) | |
download | CMake-94d1879ba049fbb52a168228218e479b281bce12.zip CMake-94d1879ba049fbb52a168228218e479b281bce12.tar.gz CMake-94d1879ba049fbb52a168228218e479b281bce12.tar.bz2 |
Merge topic 'cmake-no-args-output'
de7c2882 cmake,ccmake: Produce shorter output on no arguments (#14973)
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index d8540cb..61b175e 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -42,6 +42,18 @@ static const char * cmDocumentationUsage[][2] = {0, " cmake [options] <path-to-source>\n" " cmake [options] <path-to-existing-build>"}, + {0, + "Specify a source directory to (re-)generate a build system for " + "it in the current working directory. Specify an existing build " + "directory to re-generate its build system."}, + {0,0} +}; + +//---------------------------------------------------------------------------- +static const char * cmDocumentationUsageNote[][2] = +{ + {0, + "Run 'cmake --help' for more information."}, {0,0} }; @@ -223,6 +235,10 @@ int do_cmake(int ac, char const* const* av) doc.SetName("cmake"); doc.SetSection("Name",cmDocumentationName); doc.SetSection("Usage",cmDocumentationUsage); + if ( ac == 1 ) + { + doc.AppendSection("Usage",cmDocumentationUsageNote); + } doc.AppendSection("Generators",generators); doc.PrependSection("Options",cmDocumentationOptions); |